Skip to content

Commit

Permalink
fix: 🐛 fixes #261 ScrollController Exception in ChatController.scroll…
Browse files Browse the repository at this point in the history
…ToLastMessage
  • Loading branch information
vatsaltanna committed Nov 1, 2024
1 parent 771a35e commit 88a8661
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
voice_message_configuration.dart export in models.dart
* **Fix**: [261](https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/261)
userReactionCallback not working
* **Fix**: [240](https://github.com/SimformSolutionsPvtLtd/flutter_chatview/issues/240)
ScrollController Exception in ChatController.scrollToLastMessage

## [2.2.0]

Expand Down
2 changes: 1 addition & 1 deletion lib/src/controller/chat_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class ChatController {
() {
if (!scrollController.hasClients) return;
scrollController.animateTo(
scrollController.position.minScrollExtent,
scrollController.positions.last.minScrollExtent,
curve: Curves.easeIn,
duration: const Duration(milliseconds: 300),
);
Expand Down

0 comments on commit 88a8661

Please sign in to comment.