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

Allow search widget to be constructed with or without an app bar

This commit is contained in:
Oliver Walters
2022-05-04 10:42:33 +10:00
parent b6a5af08d8
commit a3597c5d61
4 changed files with 31 additions and 11 deletions

View File

@ -55,7 +55,6 @@ class _InvenTreeHomePageState extends State<InvenTreeHomePage> {
// Selected user profile
UserProfile? _profile;
void _scan(BuildContext context) {
if (!InvenTreeAPI().checkConnection(context)) return;
@ -316,7 +315,7 @@ class _InvenTreeHomePageState extends State<InvenTreeHomePage> {
Widget getBody(BuildContext context) {
switch (_tabIndex) {
case 1: // Search widget
return SearchWidget();
return SearchWidget(false);
case 2: // Notification widget
case 0: // Home widget
default: