fix: qa fixes
This commit is contained in:
@@ -607,7 +607,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
),
|
),
|
||||||
subtitle: Text('@${m.userId}'),
|
subtitle: Text('@${m.userId}'),
|
||||||
trailing: Icon(
|
trailing: Icon(
|
||||||
Icons.alternate_email,
|
StreamIcons.at_mention,
|
||||||
color: StreamChatTheme.of(context).accentColor,
|
color: StreamChatTheme.of(context).accentColor,
|
||||||
),
|
),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -1037,7 +1037,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
sendMessage();
|
sendMessage();
|
||||||
},
|
},
|
||||||
child: Icon(
|
child: Icon(
|
||||||
StreamIcons.send_message,
|
_getIdleSendIcon(),
|
||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
@@ -1059,7 +1059,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
child: Transform.rotate(
|
child: Transform.rotate(
|
||||||
angle: widget.editMessage == null ? -pi / 2 : 0,
|
angle: widget.editMessage == null ? -pi / 2 : 0,
|
||||||
child: Icon(
|
child: Icon(
|
||||||
widget.editMessage == null ? StreamIcons.send_message : StreamIcons.check_send,
|
_getSendIcon(),
|
||||||
color: StreamChatTheme.of(context).accentColor,
|
color: StreamChatTheme.of(context).accentColor,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -1069,6 +1069,24 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IconData _getIdleSendIcon() {
|
||||||
|
if (_commandEnabled) {
|
||||||
|
return StreamIcons.search;
|
||||||
|
} else {
|
||||||
|
return StreamIcons.send_message;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
IconData _getSendIcon() {
|
||||||
|
if(widget.editMessage != null) {
|
||||||
|
return StreamIcons.check_send;
|
||||||
|
} else if (_commandEnabled) {
|
||||||
|
return StreamIcons.search;
|
||||||
|
} else {
|
||||||
|
return StreamIcons.send_message;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Sends the current message
|
/// Sends the current message
|
||||||
void sendMessage() async {
|
void sendMessage() async {
|
||||||
var text = textEditingController.text.trim();
|
var text = textEditingController.text.trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user