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) >=
|
if (DateTime.now().difference(lastSeenSupportBanner) >=
|
||||||
Duration(days: 6 * 7)) {
|
Duration(days: 6 * 7)) {
|
||||||
|
final theme = Theme.of(context);
|
||||||
final messenger = ScaffoldMessenger.of(context);
|
final messenger = ScaffoldMessenger.of(context);
|
||||||
messenger.showMaterialBanner(
|
messenger.showMaterialBanner(
|
||||||
MaterialBanner(
|
MaterialBanner(
|
||||||
|
backgroundColor: theme.colorScheme.errorContainer,
|
||||||
leading: CloseButton(
|
leading: CloseButton(
|
||||||
|
color: theme.colorScheme.onErrorContainer,
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final okCancelResult = await showOkCancelAlertDialog(
|
final okCancelResult = await showOkCancelAlertDialog(
|
||||||
context: context,
|
context: context,
|
||||||
|
|
@ -436,7 +439,10 @@ class ChatListController extends State<ChatList>
|
||||||
),
|
),
|
||||||
content: Padding(
|
content: Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
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: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
|
|
@ -446,7 +452,10 @@ class ChatListController extends State<ChatList>
|
||||||
'https://fluffychat.im/faq/#how_can_i_support_fluffychat',
|
'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