update notification tab data when clicking on navigation bars
This commit is contained in:
@@ -12,6 +12,7 @@ import 'package:tm_app/views/profile/strings/profile_strings.dart';
|
||||
import 'package:tm_app/views/tenders/strings/tenders_strings.dart';
|
||||
|
||||
import '../../core/routes/app_routes.dart';
|
||||
import '../../view_models/notification_view_model.dart';
|
||||
|
||||
class TabletNavigationWidget extends StatelessWidget {
|
||||
const TabletNavigationWidget({required this.currentIndex, super.key});
|
||||
@@ -93,6 +94,7 @@ class TabletNavigationWidget extends StatelessWidget {
|
||||
context,
|
||||
() => const NotificationRouteData().go(context),
|
||||
);
|
||||
context.read<NotificationViewModel>().init();
|
||||
}
|
||||
},
|
||||
iconPath: AssetsManager.notify,
|
||||
|
||||
Reference in New Issue
Block a user