forked from eatvio/eatvio_app
feat(notifications): changed navigation flow from Cancelled diet and started diet notifications
This commit is contained in:
@@ -47,8 +47,12 @@ class MainNavigationRoutes {
|
||||
path: RouteConstants.feedScreen,
|
||||
name: 'feedScreen',
|
||||
pageBuilder: (context, state) {
|
||||
final initialTabIndex = int.tryParse(state.uri.queryParameters['initialTabIndex'] ?? '');
|
||||
return NoTransitionPage(child: FeedScreen(initialTabIndex: initialTabIndex));
|
||||
final initialTabIndexFromQuery = int.tryParse(state.uri.queryParameters['initialTabIndex'] ?? '');
|
||||
final extra = state.extra;
|
||||
if (extra is int) {
|
||||
return NoTransitionPage(child: FeedScreen(initialTabIndex: extra));
|
||||
}
|
||||
return NoTransitionPage(child: FeedScreen(initialTabIndex: initialTabIndexFromQuery));
|
||||
},
|
||||
redirect: (context, state) async {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user