kalismeras61 / flutter_page_transition

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

PageTransition + PushNamed #61

Closed softplaceio closed 2 years ago

softplaceio commented 2 years ago

Hello, I would like to know how I make a transition with Named + Animation?

With Push: Navigator.push(context, PageTransition(type: PageTransitionType.rightToLeft, child: DetailScreen()));

With Named: Navigator.pushNamed(context, PageTransition(type: PageTransitionType.rightToLeft, child: DetailScreen())) ???

Thanks a lot!

kalismeras61 commented 2 years ago

Hi, have you read Readme file ? There is a section for explaining named routes.

softplaceio commented 2 years ago

I haven't seen any examples of PushNamed with Transition. There are only 2 examples and none of them contain what I need: PageTransition(type: PageTransitionType.rightToLeft

kalismeras61 commented 2 years ago

have a look

https://github.com/kalismeras61/flutter_page_transition#usage-for-predefined-routes

kalismeras61 commented 2 years ago

I am closing this. I hope above helps.