Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/flutter/lib/src/widgets/pages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ class PageRouteBuilder<T> extends PageRoute<T> {
/// {@template flutter.widgets.pageRouteBuilder.transitionsBuilder}
/// Used to build the route's transitions.
///
/// The [animation] argument drives this route's own entrance and exit
/// transition. The [secondaryAnimation] argument drives transitions for this
/// route when another route is pushed on top of it or popped from above it, if
/// both routes allow transition coordination. See
/// [TransitionRoute.canTransitionTo] and
/// [TransitionRoute.canTransitionFrom].
///
/// See [ModalRoute.buildTransitions] for complete definition of the parameters.
/// {@endtemplate}
///
Expand Down
11 changes: 11 additions & 0 deletions packages/flutter/lib/src/widgets/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2802,6 +2802,17 @@ typedef RoutePageBuilder =
/// Signature for the function that builds a route's transitions.
/// Used in [PageRouteBuilder] and [showGeneralDialog].
///
/// The [animation] argument drives this route's transition when it is pushed
/// onto or popped off the [Navigator]. The [secondaryAnimation] argument lets
/// this route coordinate with the transition of the route above it: when a new
/// route is pushed on top of this one, this route's [secondaryAnimation] runs
/// from 0.0 to 1.0, and when that route is popped it runs from 1.0 to 0.0.
///
/// A route only receives a running [secondaryAnimation] when this route's
/// [TransitionRoute.canTransitionTo] method and the next route's
/// [TransitionRoute.canTransitionFrom] method both return true. Otherwise,
/// [secondaryAnimation] remains [kAlwaysDismissedAnimation].
///
/// See [ModalRoute.buildTransitions] for complete definition of the parameters.
typedef RouteTransitionsBuilder =
Widget Function(
Expand Down