From 494737e28ab799383a10ed47318a8e1ebc2fc730 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 23 Feb 2020 08:52:28 +0100 Subject: [PATCH] Fix hide plus button --- lib/views/chat.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/views/chat.dart b/lib/views/chat.dart index b981082..592ac52 100644 --- a/lib/views/chat.dart +++ b/lib/views/chat.dart @@ -171,6 +171,8 @@ class _ChatState extends State<_Chat> { if (replyEvent != null) { setState(() => replyEvent = null); } + + setState(() => inputText = ""); } void sendFileAction(BuildContext context) async { @@ -622,8 +624,6 @@ class _ChatState extends State<_Chat> { send(); FocusScope.of(context) .requestFocus(inputFocus); - setState(() => - inputText = sendController.text); }, focusNode: inputFocus, controller: sendController,