WIP
This commit is contained in:
parent
c6840638c7
commit
758ee5148e
|
@ -31,8 +31,6 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
||||||
log('update: ${widget.update == null}');
|
|
||||||
log('update: ${widget.update}');
|
|
||||||
if (widget.update != null) {
|
if (widget.update != null) {
|
||||||
await widget.update!(context);
|
await widget.update!(context);
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,7 @@ class MenuEntry implements BaseModule {
|
||||||
enText: 'My Orders',
|
enText: 'My Orders',
|
||||||
),
|
),
|
||||||
route: '/packageOrder',
|
route: '/packageOrder',
|
||||||
types: [MenuEntryType.Home, MenuEntryType.Drawer],
|
types: [MenuEntryType.Home, MenuEntryType.Drawer, MenuEntryType.Property],
|
||||||
),
|
),
|
||||||
MenuEntry(
|
MenuEntry(
|
||||||
key: 'FRE-HUB-RESERVATIONS',
|
key: 'FRE-HUB-RESERVATIONS',
|
||||||
|
@ -185,28 +185,40 @@ class MenuEntry implements BaseModule {
|
||||||
MenuEntry(
|
MenuEntry(
|
||||||
key: 'FRE-HUB-RESIDENTS',
|
key: 'FRE-HUB-RESIDENTS',
|
||||||
icon: Icons.groups,
|
icon: Icons.groups,
|
||||||
name: 'Residents',
|
name: FFLocalizations.of(navigatorKey.currentContext!).getVariableText(
|
||||||
|
ptText: 'Moradores',
|
||||||
|
enText: 'Residents',
|
||||||
|
),
|
||||||
route: '/residentsOnThePropertyPage',
|
route: '/residentsOnThePropertyPage',
|
||||||
types: [MenuEntryType.Property],
|
types: [MenuEntryType.Property],
|
||||||
),
|
),
|
||||||
MenuEntry(
|
MenuEntry(
|
||||||
key: 'FRE-HUB-VEHICLES',
|
key: 'FRE-HUB-VEHICLES',
|
||||||
icon: Icons.directions_car,
|
icon: Icons.directions_car,
|
||||||
name: 'Vehicles',
|
name: FFLocalizations.of(navigatorKey.currentContext!).getVariableText(
|
||||||
|
ptText: 'Veículos na Propriedade',
|
||||||
|
enText: 'Vehicles on the Property',
|
||||||
|
),
|
||||||
route: '/vehiclesOnThePropertyPage',
|
route: '/vehiclesOnThePropertyPage',
|
||||||
types: [MenuEntryType.Property],
|
types: [MenuEntryType.Property],
|
||||||
),
|
),
|
||||||
MenuEntry(
|
MenuEntry(
|
||||||
key: 'FRE-HUB-OPENED-VISITS',
|
key: 'FRE-HUB-OPENED-VISITS',
|
||||||
icon: Icons.perm_contact_calendar,
|
icon: Icons.perm_contact_calendar,
|
||||||
name: 'Opened Visits',
|
name: FFLocalizations.of(navigatorKey.currentContext!).getVariableText(
|
||||||
|
ptText: 'Visitas Abertas',
|
||||||
|
enText: 'Opened Visits',
|
||||||
|
),
|
||||||
route: '/visitsOnThePropertyPage',
|
route: '/visitsOnThePropertyPage',
|
||||||
types: [MenuEntryType.Property],
|
types: [MenuEntryType.Property],
|
||||||
),
|
),
|
||||||
MenuEntry(
|
MenuEntry(
|
||||||
key: 'FRE-HUB-PETS-HISTORY',
|
key: 'FRE-HUB-PETS-HISTORY',
|
||||||
icon: Icons.pets,
|
icon: Icons.pets,
|
||||||
name: 'Pets History',
|
name: FFLocalizations.of(navigatorKey.currentContext!).getVariableText(
|
||||||
|
ptText: 'Histórico de Pets',
|
||||||
|
enText: 'Pets History',
|
||||||
|
),
|
||||||
route: '/petsOnThePropertyPage',
|
route: '/petsOnThePropertyPage',
|
||||||
types: [MenuEntryType.Property],
|
types: [MenuEntryType.Property],
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue