change routes with names

This commit is contained in:
2026-05-09 19:32:40 +02:00
parent 1081609530
commit 5f39d5b1ad
8 changed files with 83 additions and 26 deletions

View File

@@ -21,11 +21,10 @@ class QrUploadDialog extends StatelessWidget {
return BlocListener<AttachmentsBloc, AttachmentsState>(
listener: (context, state) {
if (state.status == AttachmentsStatus.success) {
Navigator.of(context).pop();
}
Navigator.of(context).pop();
},
listenWhen: (previous, current) => previous.status != current.status,
listenWhen: (previous, current) =>
previous.allFiles.length < current.allFiles.length,
child: AlertDialog(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
backgroundColor: theme.colorScheme.surface,