mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Added Hero zero-frame animation documentation (#30048)
This commit is contained in:
parent
ea343ccc3f
commit
de6995cfa8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user