From c96cf2339c5977a9d62c02e507c6f6e42889f0d4 Mon Sep 17 00:00:00 2001 From: JaWeee Date: Mon, 23 Dec 2024 17:58:34 -0500 Subject: [PATCH] fix: LoadingSnackBar consistently remains visible until the upload is complete - Adjusted the `SendFileDialogState` file to ensure that the `showLoadingSnackBar` remains visible throughout the file upload process. - the SnackBar is cleared only after the image/file is uploaded and displayed in the chat. --- lib/pages/chat/send_file_dialog.dart | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/pages/chat/send_file_dialog.dart b/lib/pages/chat/send_file_dialog.dart index bb524b8d0..0cf5cbdeb 100644 --- a/lib/pages/chat/send_file_dialog.dart +++ b/lib/pages/chat/send_file_dialog.dart @@ -88,8 +88,6 @@ class SendFileDialogState extends State { widget.files.length, ), ); - } else { - scaffoldMessenger.clearSnackBars(); } try {