Skip to content

Commit

Permalink
fix: mobile: fix scroll to bottom function
Browse files Browse the repository at this point in the history
  • Loading branch information
zmhu committed Oct 27, 2023
1 parent 22de1b1 commit 0909a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pages/chat_message_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ChatMessagePage extends StatelessWidget {
TextEditingController textEditingController = TextEditingController();

scrollToBottom() {
return scrollController.animateTo(scrollController.position.maxScrollExtent,
return scrollController.animateTo(scrollController.position.minScrollExtent,
duration: const Duration(milliseconds: 500), curve: Curves.easeInOut);
}

Expand Down

0 comments on commit 0909a9e

Please sign in to comment.