@@ -48,7 +48,6 @@ GoRouter createRouter({
48
48
const authenticationPath = Routes .authentication;
49
49
const dashboardPath = Routes .dashboard;
50
50
final isGoingToAuth = currentLocation.startsWith (authenticationPath);
51
- final isGoingToDashboard = currentLocation.startsWith (dashboardPath);
52
51
53
52
// --- Case 1: Unauthenticated User ---
54
53
if (appStatus == AppStatus .unauthenticated ||
@@ -97,7 +96,6 @@ GoRouter createRouter({
97
96
path: Routes .authentication,
98
97
name: Routes .authenticationName,
99
98
builder: (BuildContext context, GoRouterState state) {
100
- final l10n = context.l10n;
101
99
const headline = 'Sign In to Dashboard' ;
102
100
const subHeadline = 'Enter your email to get a verification code.' ;
103
101
const showAnonymousButton = false ;
@@ -175,6 +173,16 @@ GoRouter createRouter({
175
173
title: 'Create New Headline' ,
176
174
), // Placeholder
177
175
),
176
+ GoRoute (
177
+ path: Routes .editHeadline,
178
+ name: Routes .editHeadlineName,
179
+ builder: (context, state) {
180
+ final id = state.pathParameters['id' ]! ;
181
+ return PlaceholderCreatePage (
182
+ title: 'Edit Headline $id ' ,
183
+ ); // Placeholder
184
+ },
185
+ ),
178
186
],
179
187
),
180
188
GoRoute (
0 commit comments