mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Display stock list using ListTiles
This commit is contained in:
parent
8450d0cb22
commit
c8f09ed62e
1 changed files with 12 additions and 22 deletions
|
|
@ -143,17 +143,12 @@ class SublocationList extends StatelessWidget {
|
||||||
Widget _build(BuildContext context, int index) {
|
Widget _build(BuildContext context, int index) {
|
||||||
InvenTreeStockLocation loc = _locations[index];
|
InvenTreeStockLocation loc = _locations[index];
|
||||||
|
|
||||||
return Card(
|
return ListTile(
|
||||||
child: InkWell(
|
title: Text('${loc.name}'),
|
||||||
child: Column(
|
subtitle: Text("${loc.description}"),
|
||||||
children: <Widget>[
|
onTap: () {
|
||||||
Text('${loc.name} - ${loc.description}'),
|
_openLocation(context, loc.pk);
|
||||||
],
|
},
|
||||||
),
|
|
||||||
onTap: () {
|
|
||||||
_openLocation(context, loc.pk);
|
|
||||||
},
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -179,17 +174,12 @@ class StockList extends StatelessWidget {
|
||||||
Widget _build(BuildContext context, int index) {
|
Widget _build(BuildContext context, int index) {
|
||||||
InvenTreeStockItem item = _items[index];
|
InvenTreeStockItem item = _items[index];
|
||||||
|
|
||||||
return Card(
|
return ListTile(
|
||||||
child: InkWell(
|
title: Text("${item.quantity.toString()} x ${item.partName}"),
|
||||||
child: Column(
|
subtitle: Text("${item.description}"),
|
||||||
children: <Widget>[
|
onTap: () {
|
||||||
Text('${item.quantity.toString()} x ${item.partName}')
|
_openItem(context, item.pk);
|
||||||
]
|
},
|
||||||
),
|
|
||||||
onTap: () {
|
|
||||||
_openItem(context, item.pk);
|
|
||||||
},
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue