@davoodmehraban89 / LifeMate / commits / 8c10fbc
Fork 0

LifeMate — Personal, Family & Learning Companion

feat: connect phase 4 hub to role-aware navigation

davoodmehraban89 committed Oct 5, 2026 at 16:15 UTC 8c10fbc718fb0c6c2fc5c724664f5eb796dcefb7
1 file changed +8 -5
apps/lifemate/lib/main.dart
+8 -5
@@ -3,6 +3,7 @@ import 'package:flutter_localizations/flutter_localizations.dart';
3
4 import 'api.dart';
5 import 'phase3_ui.dart';
6 +import 'phase4_ui.dart';
7
8 void main() => runApp(LifeMateApp());
9
@@ -611,11 +612,13 @@ class _HomeShellState extends State<HomeShell> {
612 ),
613 ],
614 ),
614 - body: Phase3HomeContent(
615 - api: widget.api,
616 - page: pages[index],
617 - adultShell: adultShell,
618 - ),
615 + body: (pages[index] == 'همراه هوشمند' || pages[index] == 'راهنما')
616 + ? Phase4Hub(api: widget.api, adultShell: adultShell)
617 + : Phase3HomeContent(
618 + api: widget.api,
619 + page: pages[index],
620 + adultShell: adultShell,
621 + ),
622 bottomNavigationBar: NavigationBar(
623 selectedIndex: index > 4 ? 0 : index,
624 onDestinationSelected: selectPage,