Skip to content

AnimationController notifies listeners removed during iteration #7533

@abarth

Description

@abarth

If you remove a value or statue listener from an AnimationController during iteration, the listener will still be notified (if it hasn't already been notified during the iteration). This iteration pattern can lead to subtle bugs. In other places (e.g., ChangeNotifier), we use a stronger iteration pattern that checks for removal before notifying.

Metadata

Metadata

Assignees

Labels

a: animationAnimation APIsc: API breakBackwards-incompatible API changesframeworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions