feat: wip message input
This commit is contained in:
+32
-36
@@ -627,6 +627,7 @@ class MessageInputState extends State<MessageInput> {
|
||||
icon: Icon(
|
||||
StreamIcons.lightning,
|
||||
),
|
||||
iconSize: 14.0,
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -638,6 +639,7 @@ class MessageInputState extends State<MessageInput> {
|
||||
showAttachmentModal();
|
||||
},
|
||||
icon: Icon(StreamIcons.attach),
|
||||
iconSize: 14.0,
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -855,24 +857,21 @@ class MessageInputState extends State<MessageInput> {
|
||||
}
|
||||
|
||||
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<MessageInput> {
|
||||
}
|
||||
|
||||
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,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user