mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 13:36:50 +00:00
Display stock list using ListTiles
This commit is contained in:
parent
8450d0cb22
commit
c8f09ed62e
@ -143,17 +143,12 @@ class SublocationList extends StatelessWidget {
|
||||
Widget _build(BuildContext context, int index) {
|
||||
InvenTreeStockLocation loc = _locations[index];
|
||||
|
||||
return Card(
|
||||
child: InkWell(
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Text('${loc.name} - ${loc.description}'),
|
||||
],
|
||||
),
|
||||
onTap: () {
|
||||
_openLocation(context, loc.pk);
|
||||
},
|
||||
)
|
||||
return ListTile(
|
||||
title: Text('${loc.name}'),
|
||||
subtitle: Text("${loc.description}"),
|
||||
onTap: () {
|
||||
_openLocation(context, loc.pk);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@ -179,17 +174,12 @@ class StockList extends StatelessWidget {
|
||||
Widget _build(BuildContext context, int index) {
|
||||
InvenTreeStockItem item = _items[index];
|
||||
|
||||
return Card(
|
||||
child: InkWell(
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Text('${item.quantity.toString()} x ${item.partName}')
|
||||
]
|
||||
),
|
||||
onTap: () {
|
||||
_openItem(context, item.pk);
|
||||
},
|
||||
)
|
||||
return ListTile(
|
||||
title: Text("${item.quantity.toString()} x ${item.partName}"),
|
||||
subtitle: Text("${item.description}"),
|
||||
onTap: () {
|
||||
_openItem(context, item.pk);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user