Skip to content

Commit 6377019

Browse files
committed
Update documentation for Hero widget's animation curves
- Clarified the default values for the `curve` and `reverseCurve` properties in the Hero widget documentation, specifying that they default to [Curves.fastOutSlowIn] and [Hero.curve].flipped respectively.
1 parent 5a2c1f9 commit 6377019

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/flutter/lib/src/widgets/heroes.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ class Hero extends StatefulWidget {
265265

266266
/// The curve to use in the forward direction.
267267
///
268-
/// Defaults to Curves.fastOutSlowIn.
268+
/// Defaults to [Curves.fastOutSlowIn].
269269
final Curve curve;
270270

271271
/// The curve to use in the reverse direction.
272272
///
273-
/// If this property is null, Hero.curve.flipped is used.
273+
/// If this property is null, [Hero.curve].flipped is used.
274274
final Curve? reverseCurve;
275275

276276
// Returns a map of all of the heroes in `context` indexed by hero tag that

0 commit comments

Comments
 (0)