Adds search results

This commit is contained in:
Oliver Walters committed 2021-02-12 22:38:33 +11:00
1 parent 9cf8559569
commit d1e612698e
4 files changed
+198 -48

No files matched your search

+5 -5
View File
@@ -43,8 +43,10 @@ class _InvenTreeHomePageState extends State<InvenTreeHomePage> {
void _search() {
if (!InvenTreeAPI().checkConnection(context)) return;
Navigator.push(context, MaterialPageRoute(builder: (context) => SearchWidget()));
showSearch(
context: context,
delegate: PartSearchDelegate()
);
}
void _scan(BuildContext context) {
@@ -204,13 +206,11 @@ class _InvenTreeHomePageState extends State<InvenTreeHomePage> {
appBar: AppBar(
title: Text(I18N.of(context).appTitle),
actions: <Widget>[
/*
IconButton(
icon: FaIcon(FontAwesomeIcons.search),
tooltip: 'Search',
tooltip: I18N.of(context).search,
onPressed: _search,
),
*/
],
),
drawer: new InvenTreeDrawer(context),