@@ -76,7 +76,9 @@ GoRouter createRouter({required ValueNotifier<AppStatus> authStatusNotifier}) {
76
76
// Let the initial navigation attempt proceed. The refreshListenable
77
77
// will trigger a redirect check again once the status is known.
78
78
if (appStatus == AppStatus .initial) {
79
- print (' Redirect Decision: AppStatus is INITIAL. Allowing navigation.' );
79
+ print (
80
+ ' Redirect Decision: AppStatus is INITIAL. Allowing navigation.' ,
81
+ );
80
82
return null ; // Do not redirect during initial phase
81
83
}
82
84
@@ -261,6 +263,17 @@ GoRouter createRouter({required ValueNotifier<AppStatus> authStatusNotifier}) {
261
263
return HeadlineDetailsPage (headlineId: id);
262
264
},
263
265
),
266
+ // Sub-route for notifications (placeholder) - MOVED HERE
267
+ GoRoute (
268
+ path: Routes .notifications, // Relative path 'notifications'
269
+ name: Routes .notificationsName,
270
+ builder: (context, state) {
271
+ // TODO(fulleni): Replace with actual NotificationsPage
272
+ return const Placeholder (
273
+ child: Center (child: Text ('NOTIFICATIONS PAGE' )),
274
+ );
275
+ },
276
+ ),
264
277
],
265
278
),
266
279
],
@@ -294,17 +307,6 @@ GoRouter createRouter({required ValueNotifier<AppStatus> authStatusNotifier}) {
294
307
);
295
308
},
296
309
),
297
- // Sub-route for notifications (placeholder)
298
- GoRoute (
299
- path: Routes .notifications, // Relative path 'notifications'
300
- name: Routes .notificationsName,
301
- builder: (context, state) {
302
- // TODO(fulleni): Replace with actual NotificationsPage
303
- return const Placeholder (
304
- child: Center (child: Text ('NOTIFICATIONS PAGE' )),
305
- );
306
- },
307
- ),
308
310
],
309
311
),
310
312
],
0 commit comments