From 7b247d2ce15c9631766e7a4058c7a1f32fa4c048 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Thu, 22 Sep 2016 14:26:14 -0700 Subject: [PATCH] Minor improvements to hero docs (#5998) --- packages/flutter/lib/src/widgets/heroes.dart | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/flutter/lib/src/widgets/heroes.dart b/packages/flutter/lib/src/widgets/heroes.dart index 4402fc2c01..571ae119e8 100644 --- a/packages/flutter/lib/src/widgets/heroes.dart +++ b/packages/flutter/lib/src/widgets/heroes.dart @@ -68,12 +68,14 @@ abstract class _HeroHandle { /// Heroes are the parts of an application's screen-to-screen transitions where /// a widget from one screen shifts to a position on the other. For example, /// album art from a list of albums growing to become the centerpiece of the -/// album's details view. In this context, a screen is a navigator ModalRoute. +/// album's details view. In this context, a screen is a [ModalRoute] in a +/// [Navigator]. /// -/// To get this effect, all you have to do is wrap each hero on each route with a -/// [Hero] widget, and give each hero a [tag]. The tag must be unique within the -/// current route's widget subtree. When the app transitions from one route to -/// another, each hero is animated to its new location. +/// To get this effect, all you have to do is wrap each hero on each route with +/// a [Hero] widget, and give each hero a [tag]. The tag must be unique within +/// the current route's widget subtree, and must match the tag of a [Hero] in +/// the target route. When the app transitions from one route to another, each +/// hero is animated to its new location. /// /// Heroes and the [Navigator]'s [Overlay]'s [Stack] must be axis-aligned for /// all this to work. The top left and bottom right coordinates of each animated