added navigation and selection of workspaces
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user