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

@@ -122,7 +122,7 @@ class _BatchCreateScreenState extends State<BatchCreateScreen> {
}
if (!mounted) return;
context.pushReplacement('/groups/${widget.group.id}/batches/${batch.id}');
context.pushReplacement('/groups/batches/${batch.id}');
} else {
AppSnackBar.showError(context, result.error ?? 'Failed to create batch.');
}

View File

@@ -15,12 +15,10 @@ import 'package:url_launcher/url_launcher.dart';
class BatchDetailScreen extends StatefulWidget {
final String batchId;
final String groupId;
const BatchDetailScreen({
super.key,
required this.batchId,
required this.groupId,
});
@override

View File

@@ -1142,7 +1142,7 @@ class _GroupDetailScreenState extends State<GroupDetailScreen>
borderRadius: BorderRadius.circular(12),
onTap: inSelectMode
? () => batchController.toggleBatchSelection(batch.id!)
: () => context.push('/groups/${group.id}/batches/${batch.id}'),
: () => context.push('/groups/batches/${batch.id}'),
child: Padding(
padding: const EdgeInsets.all(10),
child: Row(