mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Allows displays of Bill of Materials for assembled parts
This commit is contained in:
parent
f7e045aaeb
commit
e35c4df846
3 changed files with 34 additions and 14 deletions
|
|
@ -12,23 +12,27 @@ import "package:inventree/l10.dart";
|
|||
|
||||
class PartList extends StatefulWidget {
|
||||
|
||||
const PartList(this.filters);
|
||||
const PartList(this.filters, {this.title = ""});
|
||||
|
||||
final String title;
|
||||
|
||||
final Map<String, String> filters;
|
||||
|
||||
@override
|
||||
_PartListState createState() => _PartListState(filters);
|
||||
_PartListState createState() => _PartListState(filters, title);
|
||||
}
|
||||
|
||||
|
||||
class _PartListState extends RefreshableState<PartList> {
|
||||
|
||||
_PartListState(this.filters);
|
||||
_PartListState(this.filters, this.title);
|
||||
|
||||
final String title;
|
||||
|
||||
final Map<String, String> filters;
|
||||
|
||||
@override
|
||||
String getAppBarTitle(BuildContext context) => L10().parts;
|
||||
String getAppBarTitle(BuildContext context) => title.isNotEmpty ? title : L10().parts;
|
||||
|
||||
@override
|
||||
Widget getBody(BuildContext context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue