Open ElixirMike opened 3 years ago
jumpTo
must not be called unless isAttached
is true. (This is mentioned by the isAttached
documentation, but it probably should be mentioned by the jumpTo
/scrollTo
documentation too.)
If you want to set an initial scroll index, you should be supplying an argument for the initialScrollIndex
parameter in ScrollablePositionedList
's constructor.
In my scenario, When the widget loads, I want it to automatically jump/scroll to a specific selected index in the list. If I do this with a button trigger, it correctly scrolls to the spot in the list.
However, when I try to to do this from initState, It throws the error "Null check operator used on a null value".
initState
In my widget tree?