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.
This commit is contained in:
JaWeee 2024-12-23 17:58:34 -05:00
parent 583bf5f2da
commit c96cf2339c

View file

@ -88,8 +88,6 @@ class SendFileDialogState extends State<SendFileDialog> {
widget.files.length,
),
);
} else {
scaffoldMessenger.clearSnackBars();
}
try {