From fbb21dd8a4a0b647b4d20b6e2dc365d073eea1ef Mon Sep 17 00:00:00 2001 From: Mark M2 Macbook Date: Sat, 9 May 2026 11:03:12 +0200 Subject: [PATCH] f --- .../widgets/shared_forms/mobile_upload_screen.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/core/widgets/shared_forms/mobile_upload_screen.dart b/lib/core/widgets/shared_forms/mobile_upload_screen.dart index 9d15b0e..258bea7 100644 --- a/lib/core/widgets/shared_forms/mobile_upload_screen.dart +++ b/lib/core/widgets/shared_forms/mobile_upload_screen.dart @@ -27,6 +27,7 @@ class _SharedMobileUploadScreenState extends State { // 2. STATO DI CARICAMENTO GLOBALE bool _isUploading = false; + bool _isProcessingLocal = false; // Funzione magica per capire se รจ un'immagine o un PDF dall'estensione bool _isImage(String path) { @@ -242,11 +243,10 @@ class _SharedMobileUploadScreenState extends State { ), // --- OVERLAY DI CARICAMENTO --- - if (_isUploading) + if (_isUploading || _isProcessingLocal) Container( - // Usa il metodo non deprecato che hai giustamente suggerito! color: Colors.black.withValues(alpha: 0.5), - child: const Center( + child: Center( child: Card( child: Padding( padding: EdgeInsets.all(24.0), @@ -256,7 +256,9 @@ class _SharedMobileUploadScreenState extends State { CircularProgressIndicator(), SizedBox(height: 16), Text( - "Caricamento in corso...", + _isUploading + ? "Invio in corso..." + : "Elaborazione foto...", style: TextStyle(fontWeight: FontWeight.bold), ), ],