mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Allow search widget to be constructed with or without an app bar
This commit is contained in:
parent
b6a5af08d8
commit
a3597c5d61
4 changed files with 31 additions and 11 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue