From 5dfa912bea96f81d026eda8c9c43e8bbcac9138e Mon Sep 17 00:00:00 2001 From: Alex Demchenko Date: Sun, 9 Jun 2024 18:10:50 +0200 Subject: [PATCH] remove suspicious return statement --- lib/src/widgets/chat.dart | 2 +- lib/src/widgets/input/input.dart | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/src/widgets/chat.dart b/lib/src/widgets/chat.dart index fc6d5a6cd..7fb63a1dd 100644 --- a/lib/src/widgets/chat.dart +++ b/lib/src/widgets/chat.dart @@ -380,7 +380,7 @@ class ChatState extends State { Duration? scrollDuration, bool withHighlight = false, Duration? highlightDuration, - AutoScrollPosition? preferPosition + AutoScrollPosition? preferPosition, }) async { await _scrollController.scrollToIndex( chatMessageAutoScrollIndexById[id]!, diff --git a/lib/src/widgets/input/input.dart b/lib/src/widgets/input/input.dart index 57252e6d7..33b4534f5 100644 --- a/lib/src/widgets/input/input.dart +++ b/lib/src/widgets/input/input.dart @@ -107,9 +107,6 @@ class _InputState extends State { } void _handleTextControllerChange() { - if (_textController.value.isComposingRangeValid) { - return; - } setState(() { _sendButtonVisible = _textController.text.trim() != ''; });