fixed mobile shell call home view model
This commit is contained in:
@@ -20,8 +20,10 @@ class AppShellScreen extends StatelessWidget {
|
||||
index,
|
||||
initialLocation: index == navigationShell.currentIndex,
|
||||
);
|
||||
if (index == 0) {
|
||||
context.read<HomeViewModel>().init();
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user