expose messageInputDecoration

This commit is contained in:
Salvatore Giordano
2020-12-09 14:45:24 +01:00
parent ea7c0f10f4
commit d6a6bdff67
6 changed files with 31 additions and 13 deletions
+9 -7
View File
@@ -263,13 +263,15 @@ class MessageInputState extends State<MessageInput> {
},
style: widget.inputTextStyle ?? Theme.of(context).textTheme.bodyText2,
autofocus: widget.autofocus,
decoration: InputDecoration(
hintText: 'Write a message',
hintStyle:
widget.inputTextStyle ?? Theme.of(context).textTheme.bodyText2,
prefixText: ' ',
border: InputBorder.none,
),
decoration:
StreamChatTheme.of(context).channelTheme.messageInputDecoration ??
InputDecoration(
hintText: 'Write a message',
hintStyle: widget.inputTextStyle ??
Theme.of(context).textTheme.bodyText2,
prefixText: ' ',
border: InputBorder.none,
),
textCapitalization: TextCapitalization.sentences,
),
),