Merge pull request #1060 from GetStream/fix/message_input_bg_color

fix(ui): Use MessageInputTheme's inputBackgroundColor in MessageInput widgets
This commit is contained in:
Salvatore Giordano
2022-04-07 10:33:02 +02:00
committed by GitHub
2 changed files with 3 additions and 0 deletions
@@ -3,6 +3,7 @@
🐞 Fixed
-[[#892]](https://github.com/GetStream/stream-chat-flutter/issues/892): Fix default `initialAlignment` in `MessageListView`.
- Fix `MessageInputTheme.inputBackgroundColor` color not being used in some widgets of `MessageInput`
## 3.5.1
@@ -480,6 +480,7 @@ class MessageInputState extends State<MessageInput> {
if (widget.editMessage == null) {
child = Material(
elevation: 8,
color: _messageInputTheme.inputBackgroundColor,
child: child,
);
}
@@ -679,6 +680,7 @@ class MessageInputState extends State<MessageInput> {
gradient: _focusNode.hasFocus
? _messageInputTheme.activeBorderGradient
: _messageInputTheme.idleBorderGradient,
color: _messageInputTheme.inputBackgroundColor,
),
child: Padding(
padding: const EdgeInsets.all(1.5),