lukepighetti / fluro

Fluro is a Flutter routing library that adds flexible routing options like wildcards, named parameters and clear route definitions.
https://pub.dev/packages/fluro
MIT License
3.67k stars 417 forks source link

Add possibility to work with `page_transition` #244

Open nerder opened 3 years ago

nerder commented 3 years ago

In an attempt to provide a custom transition to one of my route, i wanted to use one of the provided transitions from this package page_transition but seems to not be possible to provide an entire PageTransiton directly to fluro, instead i need to re-build my own transition using SlideTranslition which is not optimal in my use-case.

A cool idea will be to have an additional parameter that accepts a pageTransition as well has a transitionBuilder method for when we choose to use TransitionType.custom. This will become very handy and allow users to not re-invent the wheel by re-implementing transitions.

Just for context what I'm trying to accomplish is to have a transition similar to PageView so something like rightToLeft from the above mentioned package.

Thank you!