added navigation and selection of workspaces

This commit is contained in:
2026-06-23 00:22:30 +02:00
parent ae2705363a
commit e89c711d00
11 changed files with 118 additions and 107 deletions

View File

@@ -161,7 +161,10 @@ GoRouter buildRouter() {
return ScaffoldWithNavBar(child: child);
},
routes: [
GoRoute(path: '/workspace', builder: (context, state) => const WorkspaceScreen()),
GoRoute(
path: '/workspace',
builder: (context, state) => const WorkspaceScreen(),
),
GoRoute(path: '/', builder: (context, state) => const HomeScreen()),
GoRoute(
path: '/home',
@@ -249,11 +252,10 @@ GoRouter buildRouter() {
},
),
GoRoute(
path: '/groups/:groupId/batches/:batchId',
path: '/groups/batches/:batchId',
builder: (context, state) {
final batchId = state.pathParameters['batchId']!;
final groupId = state.pathParameters['groupId']!;
return BatchDetailScreen(batchId: batchId, groupId: groupId);
return BatchDetailScreen(batchId: batchId);
},
),
GoRoute(