Dark mode

This commit is contained in:
2024-05-01 22:35:58 +08:00
parent 7c4427e84a
commit fceb3edbc6
5 changed files with 13 additions and 6 deletions

View File

@ -108,7 +108,7 @@ class _ChatMessageEditorState extends State<ChatMessageEditor> {
final editingBanner = MaterialBanner(
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 20),
leading: const Icon(Icons.edit_note),
backgroundColor: const Color(0xFFE0E0E0),
backgroundColor: Theme.of(context).colorScheme.surfaceVariant.withOpacity(0.9),
dividerColor: const Color.fromARGB(1, 0, 0, 0),
content: Text(AppLocalizations.of(context)!.chatMessageEditNotify),
actions: [
@ -122,7 +122,7 @@ class _ChatMessageEditorState extends State<ChatMessageEditor> {
final replyingBanner = MaterialBanner(
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 20),
leading: const Icon(Icons.reply),
backgroundColor: const Color(0xFFE0E0E0),
backgroundColor: Theme.of(context).colorScheme.surfaceVariant.withOpacity(0.9),
dividerColor: const Color.fromARGB(1, 0, 0, 0),
content: Text(AppLocalizations.of(context)!.chatMessageReplyNotify),
actions: [