Added Hero zero-frame animation documentation (#30048)

This commit is contained in:
Shi-Hao Hong 2019-03-27 18:17:12 -07:00 committed by GitHub
parent ea343ccc3f
commit de6995cfa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,11 +77,13 @@ Rect _globalBoundingBoxFor(BuildContext context) {
/// same tag, a hero animation is triggered.
///
/// If a [Hero] is already in flight when navigation occurs, its
/// flight animation will be redirected to its new destination.
/// The widget shown in-flight during the transition is, by default, the
/// flight animation will be redirected to its new destination. The
/// widget shown in-flight during the transition is, by default, the
/// destination route's [Hero]'s child.
///
/// For a Hero animation to trigger, the Hero has to exist on the very first
/// frame of the new page's animation.
///
/// Routes must not contain more than one [Hero] for each [tag].
///
/// ## Discussion