2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 18:55:34 +00:00

Configurable GET and LIST filters per model type

This commit is contained in:
Oliver Walters
2020-04-06 12:35:59 +10:00
parent fb1fb799d2
commit 59d2b9cf1a
5 changed files with 68 additions and 6 deletions

View File

@ -34,8 +34,7 @@ class _PartDisplayState extends State<PartDisplayWidget> {
*/
List<Widget> partTiles() {
List<Widget> tiles = [
];
List<Widget> tiles = [];
// Image / name / description
tiles.add(

View File

@ -33,6 +33,25 @@ class _StockItemDisplayState extends State<StockItemDisplayWidget> {
}
}
/*
* Construct a list of detail elements about this StockItem.
* The number of elements may vary depending on the StockItem details
*/
List<Widget> stockTiles() {
List<Widget> tiles = [];
// Image / name / description
tiles.add(
Card(
child: ListTile(
title: Text("${item.partName}"),
)
)
);
return tiles;
}
@override
Widget build(BuildContext context) {
return Scaffold(