Update dependencies

This commit is contained in:
problematicconsumer
2023-08-20 15:34:19 +03:30
parent edf2279b20
commit fa352051cf
4 changed files with 103 additions and 100 deletions

View File

@@ -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;