mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 12:06:24 +00:00
Adds search results
This commit is contained in:
parent
9cf8559569
commit
d1e612698e
4 changed files with 198 additions and 48 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue