We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1053764 commit 1f9d6edCopy full SHA for 1f9d6ed
lib/src/widgets/chat.dart
@@ -380,11 +380,12 @@ class ChatState extends State<Chat> {
380
Duration? scrollDuration,
381
bool withHighlight = false,
382
Duration? highlightDuration,
383
+ AutoScrollPosition? preferPosition
384
}) async {
385
await _scrollController.scrollToIndex(
386
chatMessageAutoScrollIndexById[id]!,
387
duration: scrollDuration ?? scrollAnimationDuration,
- preferPosition: AutoScrollPosition.middle,
388
+ preferPosition: preferPosition ?? AutoScrollPosition.middle,
389
);
390
if (withHighlight) {
391
await _scrollController.highlight(
0 commit comments