3

This method appears to be for testing, but I actually need to scroll a widget onto the screen after rebuilding the UI with more widgets.

This exists in the GWT world.

Is there any way to achieve this in Flutter ?

Ian White
  • 91
  • 1
  • 3
  • Possible duplicate of [Listview Scrolling to widget](https://stackoverflow.com/questions/49153087/listview-scrolling-to-widget) – rmtmckenzie Dec 11 '18 at 10:17
  • Also this is a good read if you're interested as it describes a few options and why it isn't possible out of the box: https://github.com/flutter/flutter/issues/12319. The TLDR is that if your widgets are all the same size it's easy but otherwise much more difficult. – rmtmckenzie Dec 11 '18 at 10:19

1 Answers1

0

You can use scroll_to_index plugin as a workaround. Keep tab on the Widget's index that you'd like to navigate to utilize this package.

Omatt
  • 8,564
  • 2
  • 42
  • 144