kalismeras61 / flutter_page_transition

This is Flutter Page Transition Package
BSD 2-Clause "Simplified" License
471 stars 56 forks source link

leftToRightJoined: getting childCurrent from generateRoute(...) #50

Open jimmyff opened 3 years ago

jimmyff commented 3 years ago

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?

VinhNgT commented 4 months ago

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 commented 4 months ago

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