Skip to content

Commit

Permalink
fix: LoadingSnackBar consistently remains visible until the upload is…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
dohoanggiahuy317 committed Dec 23, 2024
1 parent 583bf5f commit c96cf23
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/pages/chat/send_file_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ class SendFileDialogState extends State<SendFileDialog> {
widget.files.length,
),
);
} else {
scaffoldMessenger.clearSnackBars();
}

try {
Expand Down

0 comments on commit c96cf23

Please sign in to comment.