Fix hide plus button

This commit is contained in:
Christian Pauly 2020-02-23 08:52:28 +01:00
parent 7dbb603ef2
commit 494737e28a

View file

@ -171,6 +171,8 @@ class _ChatState extends State<_Chat> {
if (replyEvent != null) { if (replyEvent != null) {
setState(() => replyEvent = null); setState(() => replyEvent = null);
} }
setState(() => inputText = "");
} }
void sendFileAction(BuildContext context) async { void sendFileAction(BuildContext context) async {
@ -622,8 +624,6 @@ class _ChatState extends State<_Chat> {
send(); send();
FocusScope.of(context) FocusScope.of(context)
.requestFocus(inputFocus); .requestFocus(inputFocus);
setState(() =>
inputText = sendController.text);
}, },
focusNode: inputFocus, focusNode: inputFocus,
controller: sendController, controller: sendController,