mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-13 03:32:22 -04:00
refactor and move stuff
This commit is contained in:
parent
8c22bf8cc0
commit
b54868cc55
28 changed files with 500 additions and 94 deletions
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:go_router/go_router.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
import '../pages/pages.dart';
|
||||
import 'router_notifier.dart';
|
||||
|
||||
final _key = GlobalKey<NavigatorState>(debugLabel: 'routerKey');
|
||||
|
@ -14,7 +15,7 @@ final routerProvider = Provider.autoDispose<GoRouter>((ref) {
|
|||
navigatorKey: _key,
|
||||
refreshListenable: notifier,
|
||||
debugLogDiagnostics: true,
|
||||
initialLocation: SplashPage.path,
|
||||
initialLocation: IndexPage.path,
|
||||
routes: notifier.routes,
|
||||
redirect: notifier.redirect,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue