Fix FAB colors

This commit is contained in:
Christian Pauly 2020-02-16 20:13:55 +01:00
parent ea71a97e45
commit 96b572023c
4 changed files with 6 additions and 0 deletions

View File

@ -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,
),

View File

@ -193,10 +193,12 @@ class _ChatListState extends State<ChatList> {
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<ChatList> {
),
SpeedDialChild(
child: Icon(Icons.person_add),
foregroundColor: Colors.white,
backgroundColor: Colors.green,
label: I18n.of(context).newPrivateChat,
labelStyle: TextStyle(

View File

@ -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),

View File

@ -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,
),
);