From 8cb06d602b8b6487b8011024835dc0e01c946584 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sun, 12 Jan 2025 12:23:56 +0100 Subject: [PATCH] chore: Show close icon for device verification warning --- lib/config/themes.dart | 1 + lib/pages/chat_list/chat_list.dart | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/config/themes.dart b/lib/config/themes.dart index abb45c2f5..89d49ba77 100644 --- a/lib/config/themes.dart +++ b/lib/config/themes.dart @@ -125,6 +125,7 @@ abstract class FluffyThemes { ), snackBarTheme: const SnackBarThemeData( behavior: SnackBarBehavior.floating, + width: FluffyThemes.columnWidth * 1.5, ), elevatedButtonTheme: ElevatedButtonThemeData( style: ElevatedButton.styleFrom( diff --git a/lib/pages/chat_list/chat_list.dart b/lib/pages/chat_list/chat_list.dart index 5c494acb1..c6f8cc277 100644 --- a/lib/pages/chat_list/chat_list.dart +++ b/lib/pages/chat_list/chat_list.dart @@ -773,7 +773,9 @@ class ChatListController extends State controller = ScaffoldMessenger.of(context).showSnackBar( SnackBar( duration: const Duration(seconds: 15), + showCloseIcon: true, backgroundColor: theme.colorScheme.errorContainer, + closeIconColor: theme.colorScheme.onErrorContainer, content: Text( L10n.of(context).oneOfYourDevicesIsNotVerified, style: TextStyle(