mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Configurable GET and LIST filters per model type
This commit is contained in:
parent
fb1fb799d2
commit
59d2b9cf1a
5 changed files with 68 additions and 6 deletions
|
|
@ -34,8 +34,7 @@ class _PartDisplayState extends State<PartDisplayWidget> {
|
|||
*/
|
||||
List<Widget> partTiles() {
|
||||
|
||||
List<Widget> tiles = [
|
||||
];
|
||||
List<Widget> tiles = [];
|
||||
|
||||
// Image / name / description
|
||||
tiles.add(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue