From 377086a2d41ec9c9d628e34948b03aa8d25c6274 Mon Sep 17 00:00:00 2001 From: amirrezaghabeli Date: Mon, 1 Sep 2025 18:34:02 +0330 Subject: [PATCH] fixed mobile shell call home view model --- lib/core/routes/app_shell/app_shell_screen.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/core/routes/app_shell/app_shell_screen.dart b/lib/core/routes/app_shell/app_shell_screen.dart index 54b561f..3674a96 100644 --- a/lib/core/routes/app_shell/app_shell_screen.dart +++ b/lib/core/routes/app_shell/app_shell_screen.dart @@ -20,7 +20,9 @@ class AppShellScreen extends StatelessWidget { index, initialLocation: index == navigationShell.currentIndex, ); - context.read().init(); + if (index == 0) { + context.read().init(); + } } @override