Refactoring, UI fixes

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-01-04 15:49:24 +05:30
parent 032555831c
commit 33810de18f
3 changed files with 90 additions and 81 deletions
+4 -2
View File
@@ -25,7 +25,7 @@ import 'package:video_compress/video_compress.dart';
import 'extension.dart';
import '../stream_chat_flutter.dart';
import 'reply_message_widget.dart';
import 'quoted_message_widget.dart';
import 'stream_channel.dart';
typedef FileUploader = Future<String> Function(PlatformFile, Channel);
@@ -2015,7 +2015,9 @@ class MessageInputState extends State<MessageInput> {
textEditingController.clear();
_attachments.clear();
widget.onQuotedMessageCleared();
if (widget.onQuotedMessageCleared != null) {
widget.onQuotedMessageCleared();
}
setState(() {
_messageIsPresent = false;