scroll_behavior library

Mixins

InitialPixelsInRange
Lays a list out in its first frame at an offset given past its end, as one opening at its newest item asks with double.maxFinite. Flutter keeps that offset through the first layout, which builds no item, and springs back to the end a frame later, the first frame a pushed page moves in.
ScrubbableScrollPosition
SheetScrollController
Drags move the sheet until it opens fully, so a scrollbar hides till then.

Functions

initialPixelsFromTop(ScrollContext context, double initialScrollOffset) → double
Where a page or sheet list opens: initialScrollOffset down from the top the reader sees, which a reversed list reaches at its maximum offset. One controller serves lists that read either way, as a feed and its grouped form do, so only the list knows which offset is its top.
isTouchPlatform(TargetPlatform platform) → bool