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.

Signed-off-by: JaWeee <dohoanggiahuy310703@gmail.com>
This commit is contained in:
JaWeee 2024-12-23 17:58:34 -05:00
parent 583bf5f2da
commit 92dada533b
No known key found for this signature in database
GPG key ID: C9BECD0A1C2D1087

View file

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