chore: Show close icon for device verification warning

krille/polls
krille-chan 9 months ago
parent f68a9de6bf
commit 8cb06d602b
No known key found for this signature in database

@ -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…
Cancel
Save