@@ -58,7 +58,7 @@ class BigIntRoute extends GoRouteData {
58
58
Widget drawerTile (BuildContext context) => ListTile (
59
59
title: const Text ('BigIntRoute' ),
60
60
onTap: () => go (context),
61
- selected: GoRouterState .of (context).location == location,
61
+ selected: GoRouterState .of (context).uri. toString () == location,
62
62
);
63
63
}
64
64
@@ -84,7 +84,7 @@ class BoolRoute extends GoRouteData {
84
84
Widget drawerTile (BuildContext context) => ListTile (
85
85
title: const Text ('BoolRoute' ),
86
86
onTap: () => go (context),
87
- selected: GoRouterState .of (context).location == location,
87
+ selected: GoRouterState .of (context).uri. toString () == location,
88
88
);
89
89
}
90
90
@@ -107,7 +107,7 @@ class DateTimeRoute extends GoRouteData {
107
107
Widget drawerTile (BuildContext context) => ListTile (
108
108
title: const Text ('DateTimeRoute' ),
109
109
onTap: () => go (context),
110
- selected: GoRouterState .of (context).location == location,
110
+ selected: GoRouterState .of (context).uri. toString () == location,
111
111
);
112
112
}
113
113
@@ -133,7 +133,7 @@ class DoubleRoute extends GoRouteData {
133
133
Widget drawerTile (BuildContext context) => ListTile (
134
134
title: const Text ('DoubleRoute' ),
135
135
onTap: () => go (context),
136
- selected: GoRouterState .of (context).location == location,
136
+ selected: GoRouterState .of (context).uri. toString () == location,
137
137
);
138
138
}
139
139
@@ -159,7 +159,7 @@ class IntRoute extends GoRouteData {
159
159
Widget drawerTile (BuildContext context) => ListTile (
160
160
title: const Text ('IntRoute' ),
161
161
onTap: () => go (context),
162
- selected: GoRouterState .of (context).location == location,
162
+ selected: GoRouterState .of (context).uri. toString () == location,
163
163
);
164
164
}
165
165
@@ -185,7 +185,7 @@ class NumRoute extends GoRouteData {
185
185
Widget drawerTile (BuildContext context) => ListTile (
186
186
title: const Text ('NumRoute' ),
187
187
onTap: () => go (context),
188
- selected: GoRouterState .of (context).location == location,
188
+ selected: GoRouterState .of (context).uri. toString () == location,
189
189
);
190
190
}
191
191
@@ -212,7 +212,7 @@ class EnumRoute extends GoRouteData {
212
212
Widget drawerTile (BuildContext context) => ListTile (
213
213
title: const Text ('EnumRoute' ),
214
214
onTap: () => go (context),
215
- selected: GoRouterState .of (context).location == location,
215
+ selected: GoRouterState .of (context).uri. toString () == location,
216
216
);
217
217
}
218
218
@@ -239,7 +239,7 @@ class EnhancedEnumRoute extends GoRouteData {
239
239
Widget drawerTile (BuildContext context) => ListTile (
240
240
title: const Text ('EnhancedEnumRoute' ),
241
241
onTap: () => go (context),
242
- selected: GoRouterState .of (context).location == location,
242
+ selected: GoRouterState .of (context).uri. toString () == location,
243
243
);
244
244
}
245
245
@@ -265,7 +265,7 @@ class StringRoute extends GoRouteData {
265
265
Widget drawerTile (BuildContext context) => ListTile (
266
266
title: const Text ('StringRoute' ),
267
267
onTap: () => go (context),
268
- selected: GoRouterState .of (context).location == location,
268
+ selected: GoRouterState .of (context).uri. toString () == location,
269
269
);
270
270
}
271
271
@@ -288,7 +288,7 @@ class UriRoute extends GoRouteData {
288
288
Widget drawerTile (BuildContext context) => ListTile (
289
289
title: const Text ('UriRoute' ),
290
290
onTap: () => go (context),
291
- selected: GoRouterState .of (context).location == location,
291
+ selected: GoRouterState .of (context).uri. toString () == location,
292
292
);
293
293
}
294
294
@@ -361,7 +361,7 @@ class IterableRoute extends GoRouteData {
361
361
Widget drawerTile (BuildContext context) => ListTile (
362
362
title: const Text ('IterableRoute' ),
363
363
onTap: () => go (context),
364
- selected: GoRouterState .of (context).location == location,
364
+ selected: GoRouterState .of (context).uri. toString () == location,
365
365
);
366
366
}
367
367
@@ -430,7 +430,7 @@ class IterableRouteWithDefaultValues extends GoRouteData {
430
430
Widget drawerTile (BuildContext context) => ListTile (
431
431
title: const Text ('IterableRouteWithDefaultValues' ),
432
432
onTap: () => go (context),
433
- selected: GoRouterState .of (context).location == location,
433
+ selected: GoRouterState .of (context).uri. toString () == location,
434
434
);
435
435
}
436
436
@@ -536,7 +536,7 @@ class BasePage<T> extends StatelessWidget {
536
536
Text (
537
537
'Query param with default value: $queryParamWithDefaultValue ' ,
538
538
),
539
- SelectableText (GoRouterState .of (context).location ),
539
+ SelectableText (GoRouterState .of (context).uri. toString () ),
540
540
],
541
541
),
542
542
),
0 commit comments