update notification tab data when clicking on navigation bars

This commit is contained in:
amirrezaghabeli
2025-09-27 10:47:13 +03:30
parent b6a61df904
commit ae348c3ed9
6 changed files with 139 additions and 90 deletions
@@ -8,6 +8,8 @@ import 'package:tm_app/view_models/home_view_model.dart';
import 'package:tm_app/view_models/tenders_view_model.dart';
import 'package:tm_app/views/shared/responsive_builder.dart';
import '../../../view_models/notification_view_model.dart';
class AppShellScreen extends StatelessWidget {
const AppShellScreen({required this.navigationShell, super.key});
@@ -32,6 +34,9 @@ class AppShellScreen extends StatelessWidget {
if (index == 1) {
context.read<TendersViewModel>().init(context);
}
if (index == 3) {
context.read<NotificationViewModel>().init();
}
});
}