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

Add search delegate for stock items

This commit is contained in:
Oliver Walters
2021-02-13 00:58:03 +11:00
parent 858464d301
commit 5c7629d4d1
3 changed files with 188 additions and 11 deletions

View File

@ -41,20 +41,20 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
@override
List<Widget> getAppBarActions(BuildContext context) {
return <Widget>[
IconButton(
icon: FaIcon(FontAwesomeIcons.search),
onPressed: () {
showSearch(
context: context,
delegate: PartSearchDelegate(filters: {"category": "${category.pk}"})
);
}
),
IconButton(
icon: FaIcon(FontAwesomeIcons.edit),
tooltip: I18N.of(context).edit,
onPressed: _editCategoryDialog,
),
IconButton(
icon: FaIcon(FontAwesomeIcons.search),
onPressed: () {
showSearch(
context: context,
delegate: PartSearchDelegate(filters: {"category": "${category.pk}"})
);
}
)
];
}