Merge pull request 'fixed mobile shell call home view model' (#85) from mobile_shell_fix into main

Reviewed-on: https://repo.ravanertebat.com/TM/tm_app/pulls/85
This commit is contained in:
a.ghabeli
2025-09-01 18:34:36 +03:30
@@ -20,8 +20,10 @@ class AppShellScreen extends StatelessWidget {
index, index,
initialLocation: index == navigationShell.currentIndex, initialLocation: index == navigationShell.currentIndex,
); );
if (index == 0) {
context.read<HomeViewModel>().init(); context.read<HomeViewModel>().init();
} }
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {