update notification tab data when clicking on navigation bars
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user