From 946a28580c28ea5095a50e70b964e5cba939864a Mon Sep 17 00:00:00 2001 From: xster Date: Tue, 15 Aug 2017 15:38:42 -0700 Subject: [PATCH] Add some doc about the page route's T type (#11627) --- packages/flutter/lib/src/cupertino/page.dart | 4 ++++ packages/flutter/lib/src/material/page.dart | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packages/flutter/lib/src/cupertino/page.dart b/packages/flutter/lib/src/cupertino/page.dart index 86efab11d1..6e87f5db91 100644 --- a/packages/flutter/lib/src/cupertino/page.dart +++ b/packages/flutter/lib/src/cupertino/page.dart @@ -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 diff --git a/packages/flutter/lib/src/material/page.dart b/packages/flutter/lib/src/material/page.dart index 67b6cf9993..32a5df4538 100644 --- a/packages/flutter/lib/src/material/page.dart +++ b/packages/flutter/lib/src/material/page.dart @@ -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.