diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index 3c9e9123..9372767e 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -627,6 +627,7 @@ class MessageInputState extends State { icon: Icon( StreamIcons.lightning, ), + iconSize: 14.0, ), ); } @@ -638,6 +639,7 @@ class MessageInputState extends State { showAttachmentModal(); }, icon: Icon(StreamIcons.attach), + iconSize: 14.0, ), ); } @@ -855,24 +857,21 @@ class MessageInputState extends State { } Widget _buildIdleSendButton(BuildContext context) { - return SizedBox( - height: 24.0, - width: 16.0, - child: IconTheme( - data: - StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme, - child: Padding( - padding: const EdgeInsets.all(8.0), - child: Center( - child: IconButton( - key: Key('sendButtonIdle'), - onPressed: () { - sendMessage(); - }, - icon: Icon( - StreamIcons.send_message, - color: Colors.grey, - ), + return IconTheme( + data: + StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme, + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Center( + child: IconButton( + iconSize: 14.0, + key: Key('sendButtonIdle'), + onPressed: () { + sendMessage(); + }, + icon: Icon( + StreamIcons.send_message, + color: Colors.grey, ), ), ), @@ -881,24 +880,21 @@ class MessageInputState extends State { } Widget _buildSendButton(BuildContext context) { - return SizedBox( - height: 24.0, - width: 16.0, - child: IconTheme( - data: - StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme, - child: Center( - child: Padding( - padding: const EdgeInsets.all(8.0), - child: IconButton( - key: Key('sendButton'), - onPressed: () { - sendMessage(); - }, - icon: Icon( - StreamIcons.send_message, - color: StreamChatTheme.of(context).accentColor, - ), + return IconTheme( + data: + StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme, + child: Center( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: IconButton( + iconSize: 14.0, + key: Key('sendButton'), + onPressed: () { + sendMessage(); + }, + icon: Icon( + StreamIcons.send_message, + color: StreamChatTheme.of(context).accentColor, ), ), ),