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