Skip to content

Commit

Permalink
Document shared controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
gskinner committed Aug 27, 2024
1 parent 3c4c8a6 commit 44f27a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/animate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ class Animate extends StatefulWidget with AnimateManager<Animate> {
/// An external [AnimationController] can optionally be specified. By default
/// Animate creates its own controller internally, which can be accessed via
/// [onInit] or [onPlay].
///
/// While a controller can be shared between multiple Animate instances,
/// unexpected behaviors and errors will occur if the animations do not have
/// identical total durations.
final AnimationController? controller;

/// An [Adapter] can drive the animation from an external source (ex. a [ScrollController],
Expand Down

0 comments on commit 44f27a8

Please sign in to comment.