Tkko / Flutter_dismissible_page

Flutter page widget that is dismissed by swipe gestures, with Hero style animations, Inspired by Facebook and Instagram stories.
https://pub.dev/packages/dismissible_page
MIT License
151 stars 39 forks source link

Add parameter for rootNavigator #13

Closed joakimhew closed 2 years ago

joakimhew commented 2 years ago

This PR adds the option to set the rootNavigator parameter for the Navigator

Tkko commented 2 years ago

Thanks, version 0.7.2

aytunch commented 2 years ago

Hi @joakimhew Thank you for the PR. May I ask what is the purpose of the rootNavigator? Maybe we can add it to the documentation. Can you tell a scenario where this is useful please?

joakimhew commented 2 years ago

Sure! @aytunch The purpose is if you have nested routes but want to be able to push routes on the root instead. An example is if you have a tab in you app but don't want the tab to be visible in a dismissible page route