fix: ordem do pets no menu da home
This commit is contained in:
parent
b6e83dbaa8
commit
5cab6b88a6
|
@ -135,6 +135,14 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
DialogUnavailable.unavailableFeature(context);
|
DialogUnavailable.unavailableFeature(context);
|
||||||
safeSetState;
|
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))
|
if (options.contains(MenuOption.AccessOnTheProperty))
|
||||||
addMenuEntry(Icons.transfer_within_a_station_outlined, 'Access History', 'Consultar Acessos', () async {
|
addMenuEntry(Icons.transfer_within_a_station_outlined, 'Access History', 'Consultar Acessos', () async {
|
||||||
await open(context, '/acessHistoryPage');
|
await open(context, '/acessHistoryPage');
|
||||||
|
@ -165,14 +173,7 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
||||||
await open(context, '/visitsOnThePropertyPage');
|
await open(context, '/visitsOnThePropertyPage');
|
||||||
safeSetState;
|
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))
|
if (options.contains(MenuOption.AboutProperty))
|
||||||
addMenuEntry(Icons.home, 'About Property', 'Sobre a Propriedade', () async {
|
addMenuEntry(Icons.home, 'About Property', 'Sobre a Propriedade', () async {
|
||||||
if (await StorageHelper().get(SQLiteStorageKey.whatsapp.value, Storage.SQLiteStorage) == 'true')
|
if (await StorageHelper().get(SQLiteStorageKey.whatsapp.value, Storage.SQLiteStorage) == 'true')
|
||||||
|
|
Loading…
Reference in New Issue