feat: wip message input
This commit is contained in:
+32
-36
@@ -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,24 +857,21 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildIdleSendButton(BuildContext context) {
|
Widget _buildIdleSendButton(BuildContext context) {
|
||||||
return SizedBox(
|
return IconTheme(
|
||||||
height: 24.0,
|
data:
|
||||||
width: 16.0,
|
StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme,
|
||||||
child: IconTheme(
|
child: Padding(
|
||||||
data:
|
padding: const EdgeInsets.all(8.0),
|
||||||
StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme,
|
child: Center(
|
||||||
child: Padding(
|
child: IconButton(
|
||||||
padding: const EdgeInsets.all(8.0),
|
iconSize: 14.0,
|
||||||
child: Center(
|
key: Key('sendButtonIdle'),
|
||||||
child: IconButton(
|
onPressed: () {
|
||||||
key: Key('sendButtonIdle'),
|
sendMessage();
|
||||||
onPressed: () {
|
},
|
||||||
sendMessage();
|
icon: Icon(
|
||||||
},
|
StreamIcons.send_message,
|
||||||
icon: Icon(
|
color: Colors.grey,
|
||||||
StreamIcons.send_message,
|
|
||||||
color: Colors.grey,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -881,24 +880,21 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildSendButton(BuildContext context) {
|
Widget _buildSendButton(BuildContext context) {
|
||||||
return SizedBox(
|
return IconTheme(
|
||||||
height: 24.0,
|
data:
|
||||||
width: 16.0,
|
StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme,
|
||||||
child: IconTheme(
|
child: Center(
|
||||||
data:
|
child: Padding(
|
||||||
StreamChatTheme.of(context).channelTheme.messageInputButtonIconTheme,
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: Center(
|
child: IconButton(
|
||||||
child: Padding(
|
iconSize: 14.0,
|
||||||
padding: const EdgeInsets.all(8.0),
|
key: Key('sendButton'),
|
||||||
child: IconButton(
|
onPressed: () {
|
||||||
key: Key('sendButton'),
|
sendMessage();
|
||||||
onPressed: () {
|
},
|
||||||
sendMessage();
|
icon: Icon(
|
||||||
},
|
StreamIcons.send_message,
|
||||||
icon: Icon(
|
color: StreamChatTheme.of(context).accentColor,
|
||||||
StreamIcons.send_message,
|
|
||||||
color: StreamChatTheme.of(context).accentColor,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user