This commit is contained in:
J. A. Messias 2024-12-04 17:52:22 -03:00
parent c6840638c7
commit 758ee5148e
2 changed files with 17 additions and 7 deletions

View File

@ -31,8 +31,6 @@ class _HomePageWidgetState extends State<HomePageWidget> {
void initState() {
super.initState();
WidgetsBinding.instance.addPostFrameCallback((_) async {
log('update: ${widget.update == null}');
log('update: ${widget.update}');
if (widget.update != null) {
await widget.update!(context);
}

View File

@ -69,7 +69,7 @@ class MenuEntry implements BaseModule {
enText: 'My Orders',
),
route: '/packageOrder',
types: [MenuEntryType.Home, MenuEntryType.Drawer],
types: [MenuEntryType.Home, MenuEntryType.Drawer, MenuEntryType.Property],
),
MenuEntry(
key: 'FRE-HUB-RESERVATIONS',
@ -185,28 +185,40 @@ class MenuEntry implements BaseModule {
MenuEntry(
key: 'FRE-HUB-RESIDENTS',
icon: Icons.groups,
name: 'Residents',
name: FFLocalizations.of(navigatorKey.currentContext!).getVariableText(
ptText: 'Moradores',
enText: 'Residents',
),
route: '/residentsOnThePropertyPage',
types: [MenuEntryType.Property],
),
MenuEntry(
key: 'FRE-HUB-VEHICLES',
icon: Icons.directions_car,
name: 'Vehicles',
name: FFLocalizations.of(navigatorKey.currentContext!).getVariableText(
ptText: 'Veículos na Propriedade',
enText: 'Vehicles on the Property',
),
route: '/vehiclesOnThePropertyPage',
types: [MenuEntryType.Property],
),
MenuEntry(
key: 'FRE-HUB-OPENED-VISITS',
icon: Icons.perm_contact_calendar,
name: 'Opened Visits',
name: FFLocalizations.of(navigatorKey.currentContext!).getVariableText(
ptText: 'Visitas Abertas',
enText: 'Opened Visits',
),
route: '/visitsOnThePropertyPage',
types: [MenuEntryType.Property],
),
MenuEntry(
key: 'FRE-HUB-PETS-HISTORY',
icon: Icons.pets,
name: 'Pets History',
name: FFLocalizations.of(navigatorKey.currentContext!).getVariableText(
ptText: 'Histórico de Pets',
enText: 'Pets History',
),
route: '/petsOnThePropertyPage',
types: [MenuEntryType.Property],
),