From dc7c00399bb5b15b37683670d04e5215d2b8a1c2 Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Fri, 16 Oct 2020 15:56:09 +0530 Subject: [PATCH] feat: wip message input --- lib/src/message_input.dart | 66 ++++++++++++++++++++++---------------- 1 file changed, 38 insertions(+), 28 deletions(-) diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index 8ad19388..6e0b8b90 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -839,20 +839,25 @@ class MessageInputState extends State { return IconTheme( data: StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme, - child: Material( - clipBehavior: Clip.hardEdge, - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(32), - ), - color: Colors.grey, - child: IconButton( - key: Key('sendButton'), - onPressed: () { - sendMessage(); - }, - icon: Icon( - Icons.arrow_forward, - color: Colors.white, + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Center( + child: Material( + clipBehavior: Clip.hardEdge, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(24), + ), + color: Colors.grey, + child: IconButton( + key: Key('sendButton'), + onPressed: () { + sendMessage(); + }, + icon: Icon( + Icons.arrow_forward, + color: Colors.white, + ), + ), ), ), ), @@ -863,20 +868,25 @@ class MessageInputState extends State { return IconTheme( data: StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme, - child: Material( - clipBehavior: Clip.hardEdge, - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(32), - ), - color: StreamChatTheme.of(context).accentColor, - child: IconButton( - key: Key('sendButton'), - onPressed: () { - sendMessage(); - }, - icon: Icon( - Icons.arrow_upward, - color: Colors.white, + child: Center( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Material( + clipBehavior: Clip.hardEdge, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(24), + ), + color: StreamChatTheme.of(context).accentColor, + child: IconButton( + key: Key('sendButton'), + onPressed: () { + sendMessage(); + }, + icon: Icon( + Icons.arrow_upward, + color: Colors.white, + ), + ), ), ), ),