add filter panel to calculator

This commit is contained in:
2025-12-22 23:16:54 +00:00
parent 950978b021
commit d5d204dd19
6 changed files with 368 additions and 96 deletions

View File

@@ -84,8 +84,9 @@ class _MyAppState extends State<MyApp> {
redirect: (context, state) {
final loggedIn = auth.isLoggedIn;
final loggingIn = state.uri.toString() == '/login';
final atSettings = state.uri.toString() == '/settings';
if (!loggedIn && !loggingIn) return '/login';
if (!loggedIn && !loggingIn && !atSettings) return '/login';
if (loggedIn && loggingIn) return '/';
return null;
},
@@ -155,13 +156,13 @@ class _MyAppState extends State<MyApp> {
return NewEntryPage(editLegId: legId);
},
),
GoRoute(
path: '/settings',
builder: (context, state) => const SettingsPage(),
),
],
),
GoRoute(path: '/login', builder: (context, state) => const LoginScreen()),
GoRoute(
path: '/settings',
builder: (context, state) => const SettingsPage(),
),
],
);
}