dialog qr si chiude quando upload finito

This commit is contained in:
2026-05-09 11:43:54 +02:00
parent 73c5751677
commit a81515e4d8
3 changed files with 18 additions and 19 deletions

View File

@@ -507,11 +507,16 @@ class _SharedAttachmentsSectionState extends State<SharedAttachmentsSection> {
'https://flux.catelli.it/upload/${state.parentType.name}/$targetId?companyId=$companyId';
if (context.mounted) {
final attachmentBloc = context.read<AttachmentsBloc>();
showDialog(
context: context,
builder: (_) => QrUploadDialog(
deepLinkUrl: deepLink,
title: 'Carica File: ${widget.titleForUpload}',
builder: (_) => BlocProvider.value(
value: attachmentBloc,
child: QrUploadDialog(
deepLinkUrl: deepLink,
title: 'Carica File: ${widget.titleForUpload}',
),
),
);
}