From 5cab6b88a6a8332d9fa54fff89bd89bf98bab16a Mon Sep 17 00:00:00 2001 From: "J. A. Messias" Date: Mon, 18 Nov 2024 10:28:32 -0300 Subject: [PATCH] fix: ordem do pets no menu da home --- .../menu_component/menu_component_model.dart | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/components/organism_components/menu_component/menu_component_model.dart b/lib/components/organism_components/menu_component/menu_component_model.dart index a25aae36..1be59d82 100644 --- a/lib/components/organism_components/menu_component/menu_component_model.dart +++ b/lib/components/organism_components/menu_component/menu_component_model.dart @@ -135,6 +135,14 @@ class MenuComponentModel extends FlutterFlowModel { DialogUnavailable.unavailableFeature(context); safeSetState; }); + if (options.contains(MenuOption.PetsRegister)) + addMenuEntry(Icons.pets, 'Pets Register', 'Cadastrar Pet', () async { + if (await StorageHelper().get(SQLiteStorageKey.pets.value, Storage.SQLiteStorage) == 'true') + await open(context, '/petsPage'); + else + DialogUnavailable.unavailableFeature(context); + safeSetState; + }); if (options.contains(MenuOption.AccessOnTheProperty)) addMenuEntry(Icons.transfer_within_a_station_outlined, 'Access History', 'Consultar Acessos', () async { await open(context, '/acessHistoryPage'); @@ -165,14 +173,7 @@ class MenuComponentModel extends FlutterFlowModel { await open(context, '/visitsOnThePropertyPage'); safeSetState; }); - if (options.contains(MenuOption.PetsRegister)) - addMenuEntry(Icons.pets, 'Pets Register', 'Cadastrar Pet', () async { - if (await StorageHelper().get(SQLiteStorageKey.pets.value, Storage.SQLiteStorage) == 'true') - await open(context, '/petsPage'); - else - DialogUnavailable.unavailableFeature(context); - safeSetState; - }); + if (options.contains(MenuOption.AboutProperty)) addMenuEntry(Icons.home, 'About Property', 'Sobre a Propriedade', () async { if (await StorageHelper().get(SQLiteStorageKey.whatsapp.value, Storage.SQLiteStorage) == 'true')