mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 12:06:24 +00:00
Add separator divider elements in lists
This commit is contained in:
parent
18b4783c11
commit
1c0b469020
10 changed files with 211 additions and 134 deletions
|
|
@ -82,6 +82,7 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||
|
||||
void _showStock(BuildContext context) async {
|
||||
await part.getStockItems(context);
|
||||
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => PartStockDetailWidget(part))
|
||||
|
|
@ -349,13 +350,19 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||
case 0:
|
||||
return Center(
|
||||
child: ListView(
|
||||
children: partTiles(),
|
||||
children: ListTile.divideTiles(
|
||||
context: context,
|
||||
tiles: partTiles()
|
||||
).toList()
|
||||
),
|
||||
);
|
||||
case 1:
|
||||
return Center(
|
||||
child: ListView(
|
||||
children: actionTiles(),
|
||||
children: ListTile.divideTiles(
|
||||
context: context,
|
||||
tiles: actionTiles()
|
||||
).toList()
|
||||
)
|
||||
);
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue