Add settings screen
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:moneymgr_mobile/routes/login/login_screens.dart';
|
||||
import 'package:moneymgr_mobile/routes/login/login_screen.dart';
|
||||
import 'package:moneymgr_mobile/routes/settings/settings_screen.dart';
|
||||
import 'package:moneymgr_mobile/services/auth_state.dart';
|
||||
import 'package:moneymgr_mobile/services/router/routes_list.dart';
|
||||
import 'package:moneymgr_mobile/widgets/scaffold_with_navigation.dart';
|
||||
@ -58,11 +59,11 @@ GoRouter router(Ref ref) {
|
||||
debugLogDiagnostics: true,
|
||||
initialLocation: navigationItems.first.path,
|
||||
routes: [
|
||||
GoRoute(path: homePath, builder: (_, __) => const Scaffold()),
|
||||
GoRoute(path: authPath, builder: (_, __) => const LoginScreen()),
|
||||
GoRoute(path: homePage, builder: (_, __) => const Scaffold()),
|
||||
GoRoute(path: authPage, builder: (_, __) => const LoginScreen()),
|
||||
GoRoute(
|
||||
path: settingsPath,
|
||||
builder: (_, __) => const Text("settings screen"),
|
||||
path: settingsPage,
|
||||
builder: (_, __) => const SettingsScreen(),
|
||||
),
|
||||
|
||||
// Configuration for the bottom navigation bar routes. The routes themselves
|
||||
|
@ -1,7 +1,7 @@
|
||||
const homePath = "/";
|
||||
const homePage = "/";
|
||||
|
||||
/// Authentication path
|
||||
const authPath = "/login";
|
||||
const authPage = "/login";
|
||||
|
||||
/// Settings path
|
||||
const settingsPath = "/settings";
|
||||
const settingsPage = "/settings";
|
Reference in New Issue
Block a user