flutter_page_transition icon indicating copy to clipboard operation
flutter_page_transition copied to clipboard

leftToRightJoined: getting childCurrent from generateRoute(...)

Open jimmyff opened this issue 3 years ago • 2 comments

Hi, is there a way to get hold of the current page widget (for childCurrent) from generateRoute(RouteSettings) ?

If so it would be great to maybe add that to the example in the readme for the package?

jimmyff avatar Jun 15 '21 15:06 jimmyff

I'm having the same question, currently there is no clear way to find childCurrent when using predefined routes. So the transitions that require it won't work with go_router or AutoRoute

VinhNgT avatar Feb 15 '24 09:02 VinhNgT

Upon further research, I have found that SharedAxisTransition of https://pub.dev/packages/animations can animate both the before and after page/screen without the need to use 'childCurrent'. Maybe we should look at how it is implemented

VinhNgT avatar Feb 15 '24 11:02 VinhNgT