1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Fix emoji picker color

This commit is contained in:
Pierre HUBERT 2021-05-04 07:52:44 +02:00
parent e7b4574920
commit 6470e2145c

View File

@ -589,9 +589,7 @@ class _ConversationScreenState extends SafeState<ConversationScreen> {
}, },
icon: Icon( icon: Icon(
Icons.face, Icons.face,
color: _showEmojiPicker color: _showEmojiPicker ? _senderColor : null,
? (_conversation.color ?? Colors.blue)
: null,
), ),
), ),
], ],
@ -617,8 +615,8 @@ class _ConversationScreenState extends SafeState<ConversationScreen> {
); );
Widget _buildEmojiContainer() => EmojiPicker( Widget _buildEmojiContainer() => EmojiPicker(
bgColor: _conversation.color ?? Colors.blue.shade900, bgColor: _senderColor,
indicatorColor: _conversation.color ?? Colors.blue.shade900, indicatorColor: _senderColor,
rows: 3, rows: 3,
columns: 7, columns: 7,
onEmojiSelected: (emoji, category) { onEmojiSelected: (emoji, category) {