Skip to content

AnimatedBuilder should be renamed  #19255

@rrousselGit

Description

@rrousselGit

The class AnimatedBuilder should have its name replaced. As it is not related to animation in reality.

For example, the following is possible :

final valueNotifier = ValueNotifier(0);

AnimatedBuilder(
  animation: valueNotifier,
  builder: (context, _) {
    return Text(valueNotifier.value.toString());
  },
)

Same goes for ScrollController, ...

I suggest to rename it to ListenableBuilder as it makes more sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: animationAnimation APIsc: API breakBackwards-incompatible API changesc: proposalA detailed proposal for a change to Flutterframeworkflutter/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