Commit 946a2858 authored by xster's avatar xster Committed by GitHub

Add some doc about the page route's T type (#11627)

parent 0c158d54
...@@ -61,6 +61,10 @@ final DecorationTween _kGradientShadowTween = new DecorationTween( ...@@ -61,6 +61,10 @@ final DecorationTween _kGradientShadowTween = new DecorationTween(
/// remains in memory. To free all the resources when this is not necessary, set /// remains in memory. To free all the resources when this is not necessary, set
/// [maintainState] to false. /// [maintainState] to false.
/// ///
/// The type `T` specifies the return type of the route which can be supplied as
/// the route is popped from the stack via [Navigator.pop] when an optional
/// `result` can be provided.
///
/// See also: /// See also:
/// ///
/// * [MaterialPageRoute] for an adaptive [PageRoute] that uses a platform /// * [MaterialPageRoute] for an adaptive [PageRoute] that uses a platform
......
...@@ -55,6 +55,10 @@ class _MountainViewPageTransition extends StatelessWidget { ...@@ -55,6 +55,10 @@ class _MountainViewPageTransition extends StatelessWidget {
/// Specify whether the incoming page is a fullscreen modal dialog. On iOS, those /// Specify whether the incoming page is a fullscreen modal dialog. On iOS, those
/// pages animate bottom->up rather than right->left. /// pages animate bottom->up rather than right->left.
/// ///
/// The type `T` specifies the return type of the route which can be supplied as
/// the route is popped from the stack via [Navigator.pop] when an optional
/// `result` can be provided.
///
/// See also: /// See also:
/// ///
/// * [CupertinoPageRoute], that this [PageRoute] delegates transition animations to for iOS. /// * [CupertinoPageRoute], that this [PageRoute] delegates transition animations to for iOS.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment