chore: Make banner light red
This commit is contained in:
parent
aa605ae0c1
commit
3b204373e9
1 changed files with 11 additions and 2 deletions
|
|
@ -408,10 +408,13 @@ class ChatListController extends State<ChatList>
|
|||
|
||||
if (DateTime.now().difference(lastSeenSupportBanner) >=
|
||||
Duration(days: 6 * 7)) {
|
||||
final theme = Theme.of(context);
|
||||
final messenger = ScaffoldMessenger.of(context);
|
||||
messenger.showMaterialBanner(
|
||||
MaterialBanner(
|
||||
backgroundColor: theme.colorScheme.errorContainer,
|
||||
leading: CloseButton(
|
||||
color: theme.colorScheme.onErrorContainer,
|
||||
onPressed: () async {
|
||||
final okCancelResult = await showOkCancelAlertDialog(
|
||||
context: context,
|
||||
|
|
@ -436,7 +439,10 @@ class ChatListController extends State<ChatList>
|
|||
),
|
||||
content: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
child: Text(L10n.of(context).fluffyChatSupportBannerMessage),
|
||||
child: Text(
|
||||
L10n.of(context).fluffyChatSupportBannerMessage,
|
||||
style: TextStyle(color: theme.colorScheme.onErrorContainer),
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
|
|
@ -446,7 +452,10 @@ class ChatListController extends State<ChatList>
|
|||
'https://fluffychat.im/faq/#how_can_i_support_fluffychat',
|
||||
);
|
||||
},
|
||||
child: Text(L10n.of(context).support),
|
||||
child: Text(
|
||||
L10n.of(context).support,
|
||||
style: TextStyle(color: theme.colorScheme.onErrorContainer),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue