chore: Show close icon for device verification warning

This commit is contained in:
krille-chan 2025-01-12 12:23:56 +01:00
commit 8cb06d602b
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View file

@ -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(

View file

@ -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(