chore: show close button on error snackbar (#5512)
This commit is contained in:
parent
5d6825ad30
commit
3dddf1d8bd
2 changed files with 7 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue