Update dependencies
This commit is contained in:
@@ -32,7 +32,7 @@ GoRouter router(RouterRef ref) {
|
||||
}
|
||||
|
||||
int getCurrentIndex(BuildContext context) {
|
||||
final String location = GoRouterState.of(context).location;
|
||||
final String location = GoRouterState.of(context).uri.path;
|
||||
if (location == const HomeRoute().location) return 0;
|
||||
if (location.startsWith(const ProxiesRoute().location)) return 1;
|
||||
if (location.startsWith(const LogsRoute().location)) return 2;
|
||||
|
||||
@@ -18,7 +18,7 @@ class MobileWrapper extends HookConsumerWidget {
|
||||
final t = ref.watch(translationsProvider);
|
||||
|
||||
final currentIndex = getCurrentIndex(context);
|
||||
final location = GoRouterState.of(context).location;
|
||||
final location = GoRouterState.of(context).uri.path;
|
||||
|
||||
return Scaffold(
|
||||
key: RootScaffold.stateKey,
|
||||
|
||||
Reference in New Issue
Block a user