transitionBuilder property
The transition builder.
It can be detect the display mode of the parent NavigationView, if any, and change the transition accordingly. By default, if the display mode is top, HorizontalSlidePageTransition is used, otherwise EntrancePageTransition is used.
transitionBuilder: (child, animation) {
return DrillInPageTransition(child: child, animation: animation);
},
See also:
- EntrancePageTransition, used by default
- HorizontalSlidePageTransition, used by default on top navigation
- DrillInPageTransition, used when users navigate deeper into an app
- SuppressPageTransition, to have no animation at all
- docs.microsoft.com/en-us/windows/apps/design/motion/page-transitions
Implementation
final AnimatedSwitcherTransitionBuilder? transitionBuilder;