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,7 +20,9 @@ class AppShellScreen extends StatelessWidget {
index,
initialLocation: index == navigationShell.currentIndex,
);
context.read<HomeViewModel>().init();
if (index == 0) {
context.read<HomeViewModel>().init();
}
}
@override