feat: wip message input

This commit is contained in:
Deven Joshi
2020-10-16 17:59:03 +05:30
parent aa867b34b5
commit 9315cc4a3f
+36 -28
View File
@@ -855,20 +855,24 @@ class MessageInputState extends State<MessageInput> {
} }
Widget _buildIdleSendButton(BuildContext context) { Widget _buildIdleSendButton(BuildContext context) {
return IconTheme( return SizedBox(
data: height: 24.0,
StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme, width: 24.0,
child: Padding( child: IconTheme(
padding: const EdgeInsets.all(8.0), data:
child: Center( StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme,
child: IconButton( child: Padding(
key: Key('sendButtonIdle'), padding: const EdgeInsets.all(8.0),
onPressed: () { child: Center(
sendMessage(); child: IconButton(
}, key: Key('sendButtonIdle'),
icon: Icon( onPressed: () {
StreamIcons.send_message, sendMessage();
color: Colors.grey, },
icon: Icon(
StreamIcons.send_message,
color: Colors.grey,
),
), ),
), ),
), ),
@@ -877,20 +881,24 @@ class MessageInputState extends State<MessageInput> {
} }
Widget _buildSendButton(BuildContext context) { Widget _buildSendButton(BuildContext context) {
return IconTheme( return SizedBox(
data: height: 24.0,
StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme, width: 24.0,
child: Center( child: IconTheme(
child: Padding( data:
padding: const EdgeInsets.all(8.0), StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme,
child: IconButton( child: Center(
key: Key('sendButton'), child: Padding(
onPressed: () { padding: const EdgeInsets.all(8.0),
sendMessage(); child: IconButton(
}, key: Key('sendButton'),
icon: Icon( onPressed: () {
StreamIcons.send_message, sendMessage();
color: StreamChatTheme.of(context).accentColor, },
icon: Icon(
StreamIcons.send_message,
color: StreamChatTheme.of(context).accentColor,
),
), ),
), ),
), ),