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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user