ariedov / flutter_snaplist

A small library for creating snapping lists.
MIT License
452 stars 53 forks source link

Initial scroll to position #17

Closed jasonkaruza closed 5 years ago

jasonkaruza commented 5 years ago

First, thank you for this awesome plugin. Looking forward to using it.

Because there is no controller accepted as a parameter to the SnapList constructor, there is no way to facilitate starting at an initial index, or scrolling to a particular index. It would be wonderful if such functionality could be added.

ariedov commented 5 years ago

@jasonkaruza Thanks, that is a great suggestion!

ariedov commented 5 years ago

Check out the version 0.1.8, there is a SnaplistController with an initial position in it and setting a position programmatically.

jasonkaruza commented 5 years ago

Many thanks! It might be useful to add a comment indicating if position is 0-based or 1-based as the starting position index. You guys rock!