CustomTransitionPage<T> constructor
const
CustomTransitionPage<T> ({
- required Widget child,
- required Widget transitionsBuilder(),
- Duration transitionDuration = const Duration(milliseconds: 300),
- Duration reverseTransitionDuration = const Duration(milliseconds: 300),
- bool maintainState = true,
- bool fullscreenDialog = false,
- bool opaque = true,
- bool barrierDismissible = false,
- Color? barrierColor,
- String? barrierLabel,
- LocalKey? key,
- String? name,
- Object? arguments,
- String? restorationId,
Constructor for a page with custom transition functionality.
To be used instead of MaterialPage or CupertinoPage, which provide their own transitions.
Implementation
const CustomTransitionPage({
required this.child,
required this.transitionsBuilder,
this.transitionDuration = const Duration(milliseconds: 300),
this.reverseTransitionDuration = const Duration(milliseconds: 300),
this.maintainState = true,
this.fullscreenDialog = false,
this.opaque = true,
this.barrierDismissible = false,
this.barrierColor,
this.barrierLabel,
super.key,
super.name,
super.arguments,
super.restorationId,
});