I have implemented Auto-Scroll to the first error causing field in flutter form. Code Link. I had to use renderObject approach in few cases as scrollable.ensureVisible is not working. Note that I am using CustomExpansionTile (https://pub.dev/packages/expansion_tile_widget/example). If CustomExpansionTile is closed then the auto scroll feature is not working. Even though CustomExpansionTile has less downloads/likes it's reliable package. Any help is appreciated.
I have tried using WidgetsBinding.instance.addPostFrameCallback method,but context is getting unmounted so scroll is not happening.