mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-12 03:05:20 -04:00
cleanup
This commit is contained in:
parent
e369d6091a
commit
4ddfbe7746
20 changed files with 150 additions and 189 deletions
|
@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
|
|||
import 'package:go_router/go_router.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
import '../pages/index.dart';
|
||||
import 'router_notifier.dart';
|
||||
|
||||
part 'router.g.dart';
|
||||
|
|
|
@ -47,7 +47,7 @@ class RouterNotifier extends _$RouterNotifier implements Listenable {
|
|||
|
||||
// No matter where we are, if there's not
|
||||
|
||||
switch (state.location) {
|
||||
switch (state.matchedLocation) {
|
||||
case '/':
|
||||
return hasAnyAccount ? '/home' : '/new_account';
|
||||
case '/new_account':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue