From 96b572023c90c626b70ad7bdd7d752bb6a74e4f8 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 16 Feb 2020 20:13:55 +0100 Subject: [PATCH] Fix FAB colors --- lib/views/chat.dart | 1 + lib/views/chat_list.dart | 3 +++ lib/views/new_group.dart | 1 + lib/views/new_private_chat.dart | 1 + 4 files changed, 6 insertions(+) diff --git a/lib/views/chat.dart b/lib/views/chat.dart index 8a664e9..805198a 100644 --- a/lib/views/chat.dart +++ b/lib/views/chat.dart @@ -381,6 +381,7 @@ class _ChatState extends State<_Chat> { child: Icon(Icons.arrow_downward, color: Theme.of(context).primaryColor), onPressed: () => _scrollController.jumpTo(0), + foregroundColor: Theme.of(context).textTheme.bodyText1.color, backgroundColor: Theme.of(context).scaffoldBackgroundColor, mini: true, ), diff --git a/lib/views/chat_list.dart b/lib/views/chat_list.dart index 20eaf92..cfbbfa2 100644 --- a/lib/views/chat_list.dart +++ b/lib/views/chat_list.dart @@ -193,10 +193,12 @@ class _ChatListState extends State { floatingActionButton: SpeedDial( child: Icon(Icons.add), overlayColor: blackWhiteColor(context), + foregroundColor: Colors.white, backgroundColor: Theme.of(context).primaryColor, children: [ SpeedDialChild( child: Icon(Icons.people_outline), + foregroundColor: Colors.white, backgroundColor: Colors.blue, label: I18n.of(context).createNewGroup, labelStyle: @@ -207,6 +209,7 @@ class _ChatListState extends State { ), SpeedDialChild( child: Icon(Icons.person_add), + foregroundColor: Colors.white, backgroundColor: Colors.green, label: I18n.of(context).newPrivateChat, labelStyle: TextStyle( diff --git a/lib/views/new_group.dart b/lib/views/new_group.dart index b8bb879..3207d56 100644 --- a/lib/views/new_group.dart +++ b/lib/views/new_group.dart @@ -101,6 +101,7 @@ class _NewGroupState extends State<_NewGroup> { ], ), floatingActionButton: FloatingActionButton( + foregroundColor: Colors.white, backgroundColor: Theme.of(context).primaryColor, onPressed: () => submitAction(context), child: Icon(Icons.arrow_forward), diff --git a/lib/views/new_private_chat.dart b/lib/views/new_private_chat.dart index bcbbfb8..2df395d 100644 --- a/lib/views/new_private_chat.dart +++ b/lib/views/new_private_chat.dart @@ -236,6 +236,7 @@ class _NewPrivateChatState extends State<_NewPrivateChat> { floatingActionButton: FloatingActionButton( onPressed: () => submitAction(context), child: Icon(Icons.arrow_forward), + foregroundColor: Colors.white, backgroundColor: Theme.of(context).primaryColor, ), );