mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 03:56:24 +00:00
Refactor StockList
This commit is contained in:
parent
b656eb7b43
commit
581d182464
8 changed files with 244 additions and 172 deletions
|
|
@ -18,6 +18,7 @@ import "package:inventree/widget/part_image_widget.dart";
|
|||
import "package:inventree/widget/stock_detail.dart";
|
||||
|
||||
import "package:inventree/widget/location_display.dart";
|
||||
import 'package:inventree/widget/stock_list.dart';
|
||||
|
||||
|
||||
class PartDetailWidget extends StatefulWidget {
|
||||
|
|
@ -494,7 +495,9 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
|||
),
|
||||
);
|
||||
case 1:
|
||||
return PaginatedStockList({"part": "${part.pk}"});
|
||||
return PaginatedStockItemList(
|
||||
{"part": "${part.pk}"}
|
||||
);
|
||||
case 2:
|
||||
return Center(
|
||||
child: ListView(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue