From 758ee5148e296bea3c91b3ab331ebf34aece1ac9 Mon Sep 17 00:00:00 2001 From: "J. A. Messias" Date: Wed, 4 Dec 2024 17:52:22 -0300 Subject: [PATCH] WIP --- .../home/presentation/pages/home_page.dart | 2 -- .../menu/presentation/mappers/menu_entry.dart | 22 ++++++++++++++----- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/lib/features/home/presentation/pages/home_page.dart b/lib/features/home/presentation/pages/home_page.dart index 2ed1b623..2d64565d 100644 --- a/lib/features/home/presentation/pages/home_page.dart +++ b/lib/features/home/presentation/pages/home_page.dart @@ -31,8 +31,6 @@ class _HomePageWidgetState extends State { 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); } diff --git a/lib/shared/components/molecules/menu/presentation/mappers/menu_entry.dart b/lib/shared/components/molecules/menu/presentation/mappers/menu_entry.dart index de323a54..87875b39 100644 --- a/lib/shared/components/molecules/menu/presentation/mappers/menu_entry.dart +++ b/lib/shared/components/molecules/menu/presentation/mappers/menu_entry.dart @@ -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], ),