fixed mobile shell call home view model

This commit is contained in:
amirrezaghabeli
2025-09-01 18:34:02 +03:30
parent 5cdfa13b9b
commit 377086a2d4
@@ -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) {