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:
@@ -3,6 +3,7 @@
|
|||||||
🐞 Fixed
|
🐞 Fixed
|
||||||
|
|
||||||
-[[#892]](https://github.com/GetStream/stream-chat-flutter/issues/892): Fix default `initialAlignment` in `MessageListView`.
|
-[[#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
|
## 3.5.1
|
||||||
|
|
||||||
|
|||||||
@@ -480,6 +480,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
if (widget.editMessage == null) {
|
if (widget.editMessage == null) {
|
||||||
child = Material(
|
child = Material(
|
||||||
elevation: 8,
|
elevation: 8,
|
||||||
|
color: _messageInputTheme.inputBackgroundColor,
|
||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -679,6 +680,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
gradient: _focusNode.hasFocus
|
gradient: _focusNode.hasFocus
|
||||||
? _messageInputTheme.activeBorderGradient
|
? _messageInputTheme.activeBorderGradient
|
||||||
: _messageInputTheme.idleBorderGradient,
|
: _messageInputTheme.idleBorderGradient,
|
||||||
|
color: _messageInputTheme.inputBackgroundColor,
|
||||||
),
|
),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(1.5),
|
padding: const EdgeInsets.all(1.5),
|
||||||
|
|||||||
Reference in New Issue
Block a user