chore: show close button on error snackbar (#5512)

This commit is contained in:
ggurdin 2026-01-29 10:41:52 -05:00 committed by GitHub
parent 5d6825ad30
commit 3dddf1d8bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -237,7 +237,10 @@ class CourseChatsController extends State<CourseChats>
Logs().w('Unable to load hierarchy', e, s);
if (mounted) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text(e.toLocalizedString(context))),
SnackBar(
content: Text(e.toLocalizedString(context)),
showCloseIcon: true,
),
);
}
} finally {

View file

@ -22,6 +22,9 @@ class ErrorReporter {
content: Text(
l10n.oopsSomethingWentWrong, // Use the non-null L10n instance to get the error message
),
// #Pangea
showCloseIcon: true,
// Pangea#
),
);
} catch (err) {