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

This commit is contained in:
xster 2017-08-15 15:38:42 -07:00 committed by GitHub
parent 0c158d549e
commit 946a28580c
2 changed files with 8 additions and 0 deletions

View File

@ -61,6 +61,10 @@ final DecorationTween _kGradientShadowTween = new DecorationTween(
/// remains in memory. To free all the resources when this is not necessary, set
/// [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:
///
/// * [MaterialPageRoute] for an adaptive [PageRoute] that uses a platform

View File

@ -55,6 +55,10 @@ class _MountainViewPageTransition extends StatelessWidget {
/// Specify whether the incoming page is a fullscreen modal dialog. On iOS, those
/// 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:
///
/// * [CupertinoPageRoute], that this [PageRoute] delegates transition animations to for iOS.