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), ), ],