feat: Shrink actions on type

This commit is contained in:
Deven Joshi
2020-10-20 17:13:14 +05:30
parent b35babd79d
commit c7fb3a229f
+2 -2
View File
@@ -239,7 +239,7 @@ class MessageInputState extends State<MessageInput> {
_actionsShrunk = false; _actionsShrunk = false;
}); });
}, },
icon: Icon(StreamIcons.arrow_right, color: StreamChatTheme.of(context).accentColor,), icon: Icon(StreamIcons.circle_left, color: StreamChatTheme.of(context).accentColor,),
), ),
secondChild: Row( secondChild: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
@@ -274,7 +274,7 @@ class MessageInputState extends State<MessageInput> {
setState(() { setState(() {
_messageIsPresent = s.trim().isNotEmpty; _messageIsPresent = s.trim().isNotEmpty;
_actionsShrunk = true; _actionsShrunk = s.trim().isNotEmpty;
}); });
_commandsOverlay?.remove(); _commandsOverlay?.remove();