feat: wip message input

This commit is contained in:
Deven Joshi
2020-10-16 18:05:11 +05:30
parent c9f5afcf39
commit 3ddc521f2b
+6 -10
View File
@@ -627,6 +627,7 @@ class MessageInputState extends State<MessageInput> {
icon: Icon( icon: Icon(
StreamIcons.lightning, StreamIcons.lightning,
), ),
iconSize: 14.0,
), ),
); );
} }
@@ -638,6 +639,7 @@ class MessageInputState extends State<MessageInput> {
showAttachmentModal(); showAttachmentModal();
}, },
icon: Icon(StreamIcons.attach), icon: Icon(StreamIcons.attach),
iconSize: 14.0,
), ),
); );
} }
@@ -855,16 +857,14 @@ class MessageInputState extends State<MessageInput> {
} }
Widget _buildIdleSendButton(BuildContext context) { Widget _buildIdleSendButton(BuildContext context) {
return SizedBox( return IconTheme(
height: 24.0,
width: 16.0,
child: IconTheme(
data: data:
StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme, StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme,
child: Padding( child: Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
child: Center( child: Center(
child: IconButton( child: IconButton(
iconSize: 14.0,
key: Key('sendButtonIdle'), key: Key('sendButtonIdle'),
onPressed: () { onPressed: () {
sendMessage(); sendMessage();
@@ -876,21 +876,18 @@ class MessageInputState extends State<MessageInput> {
), ),
), ),
), ),
),
); );
} }
Widget _buildSendButton(BuildContext context) { Widget _buildSendButton(BuildContext context) {
return SizedBox( return IconTheme(
height: 24.0,
width: 16.0,
child: IconTheme(
data: data:
StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme, StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme,
child: Center( child: Center(
child: Padding( child: Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
child: IconButton( child: IconButton(
iconSize: 14.0,
key: Key('sendButton'), key: Key('sendButton'),
onPressed: () { onPressed: () {
sendMessage(); sendMessage();
@@ -902,7 +899,6 @@ class MessageInputState extends State<MessageInput> {
), ),
), ),
), ),
),
); );
} }