Skip to content

Commit

Permalink
remove suspicious return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
demchenkoalex committed Jun 9, 2024
1 parent 1f9d6ed commit 5dfa912
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion lib/src/widgets/chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class ChatState extends State<Chat> {
Duration? scrollDuration,
bool withHighlight = false,
Duration? highlightDuration,
AutoScrollPosition? preferPosition
AutoScrollPosition? preferPosition,
}) async {
await _scrollController.scrollToIndex(
chatMessageAutoScrollIndexById[id]!,
Expand Down
3 changes: 0 additions & 3 deletions lib/src/widgets/input/input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ class _InputState extends State<Input> {
}

void _handleTextControllerChange() {
if (_textController.value.isComposingRangeValid) {
return;
}
setState(() {
_sendButtonVisible = _textController.text.trim() != '';
});
Expand Down

0 comments on commit 5dfa912

Please sign in to comment.