chore: Show close icon for device verification warning
This commit is contained in:
parent
f68a9de6bf
commit
8cb06d602b
2 changed files with 3 additions and 0 deletions
|
|
@ -125,6 +125,7 @@ abstract class FluffyThemes {
|
||||||
),
|
),
|
||||||
snackBarTheme: const SnackBarThemeData(
|
snackBarTheme: const SnackBarThemeData(
|
||||||
behavior: SnackBarBehavior.floating,
|
behavior: SnackBarBehavior.floating,
|
||||||
|
width: FluffyThemes.columnWidth * 1.5,
|
||||||
),
|
),
|
||||||
elevatedButtonTheme: ElevatedButtonThemeData(
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
|
|
|
||||||
|
|
@ -773,7 +773,9 @@ class ChatListController extends State<ChatList>
|
||||||
controller = ScaffoldMessenger.of(context).showSnackBar(
|
controller = ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(
|
SnackBar(
|
||||||
duration: const Duration(seconds: 15),
|
duration: const Duration(seconds: 15),
|
||||||
|
showCloseIcon: true,
|
||||||
backgroundColor: theme.colorScheme.errorContainer,
|
backgroundColor: theme.colorScheme.errorContainer,
|
||||||
|
closeIconColor: theme.colorScheme.onErrorContainer,
|
||||||
content: Text(
|
content: Text(
|
||||||
L10n.of(context).oneOfYourDevicesIsNotVerified,
|
L10n.of(context).oneOfYourDevicesIsNotVerified,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue