2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 02:05:29 +00:00

Adds search results

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

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),