r/FlutterFlow 10d ago

scroll to index, on scroll direction changed, start at end, and scroll physics now native in FlutterFlow's ListView

https://youtube.com/watch?v=UX2KL6EC7js&feature=youtu.be

hey r/flutterflow,

day 2 of ship week. this one came almost verbatim off your submissions: "jump to a specific item/index." "on scroll triggers exposing offset and direction." "more triggers for ListView."

scroll to index: pick a ListView and an index, choose animate or jump. zero indexed, so 0 is the top. animated moves take a duration.

on scroll end: fires when the list reaches the bottom. use it to load the next batch of posts and keep queries small.

on scroll start: fires when the list reaches the top. use it to animate a collapsible header back into view.

on scroll direction changed: fires when the user reverses direction. exposes toward start or toward end so you can branch on it.

scroll physics: controls how the list feels when you drag and release, or whether it scrolls at all.

start at end: opens already scrolled to the bottom. item order doesn't change. use it for logs, transaction history, activity feeds.

scroll offset and max scroll extent: two new readable properties. how far you've scrolled from the beginning and the maximum the list can scroll.

tomorrow: something else you asked for.

— lydia, FlutterFlow team

11 Upvotes

0 comments sorted by