Home > Blockchain >  How to scroll to the index when creating a widget?
How to scroll to the index when creating a widget?

Time:04-10

I use scrollable_positioned_list to scroll to the widget. But for some reason, scrolling only happens after hot reloading. How do I make scrolling happen immediately when creating a widget?

CodePudding user response:

To solve this problem, it was enough to add initialScrollIndex to ScrollablePositionedList.

Read the documentation, guys!

  • Related