lucavenir / go_router_riverpod

An example on how to use Riverpod + GoRouter
469 stars 70 forks source link

Custom/No Transitions #10

Closed appinteractive closed 1 year ago

appinteractive commented 1 year ago

Hey thanks for that repo 👍

But a simple question, how can I customize or even disable the route transitions? I did not found any information beside using GoRoute but nothing with GoRouteData.

lucavenir commented 1 year ago

GoRoute has pageBuilder, which allows for custom transitions (or disable 'em). You have to manipulate an actual Page for that, instead of the simple Widget being displayed for that page.

GoRouteData has its corresponding buildPageWithState.

Just read the docs for more info.