Skip to content

Commit 17602d1

Browse files
gnpricechrisbobbe
authored andcommitted
scroll [nfc]: Expose MessageListScrollPosition on MessageListScrollController
1 parent 347bede commit 17602d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/widgets/scrolling.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,10 @@ class MessageListScrollController extends ScrollController {
180180
});
181181

182182
@override
183-
ScrollPosition createScrollPosition(ScrollPhysics physics,
183+
MessageListScrollPosition get position => super.position as MessageListScrollPosition;
184+
185+
@override
186+
MessageListScrollPosition createScrollPosition(ScrollPhysics physics,
184187
ScrollContext context, ScrollPosition? oldPosition) {
185188
return MessageListScrollPosition(
186189
physics: physics,

0 commit comments

Comments
 (0)