This commit is contained in:
Christien Rioux 2023-09-21 21:00:58 -04:00
parent e369d6091a
commit 4ddfbe7746
20 changed files with 150 additions and 189 deletions

View file

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

View file

@ -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':