Skip to content

Commit

Permalink
Merge pull request #1060 from GetStream/fix/message_input_bg_color
Browse files Browse the repository at this point in the history
fix(ui): Use MessageInputTheme's inputBackgroundColor in MessageInput widgets
  • Loading branch information
imtoori authored Apr 7, 2022
2 parents 21c6148 + b75ad22 commit f659f09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/stream_chat_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions packages/stream_chat_flutter/lib/src/message_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ class MessageInputState extends State<MessageInput> {
if (widget.editMessage == null) {
child = Material(
elevation: 8,
color: _messageInputTheme.inputBackgroundColor,
child: child,
);
}
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit f659f09

Please sign in to comment.