Skip to content

Commit

Permalink
add preferPosition to scrollToMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeySor committed Oct 8, 2023
1 parent 65804a9 commit e56b1e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/widgets/chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ class ChatState extends State<Chat> {
await _scrollController.scrollToIndex(
_autoScrollIndexById[id]!,
duration: scrollDuration ?? scrollAnimationDuration,
preferPosition: AutoScrollPosition.middle,
);
if (withHighlight) {
await _scrollController.highlight(
Expand Down

0 comments on commit e56b1e3

Please sign in to comment.