Skip to content

Modify Skeleton template to use ListenableBuilder instead of AnimatedBuilder #128801

@fabiancrx

Description

@fabiancrx

Is there an existing issue for this?

Use case

When creating a new project from the skeleton template flutter create -t skeleton project_name . It works as intended but it uses AnimatedBuilder to listen to the ChangeNotifier, recently ListenableBuilder has come to stable, which provides the same functionality that AnimatedBuilder but, and I quote "has a more friendly name for the class and for the parameter that it listens to, intended to make it more discoverable and less confusing for new users." as per #116543 .

Proposal

Update the template to use ListenableBuilder instad of AnimatedBuilder. Tests should remain the same without the need for new ones as the functionality will be identical after the change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: proposalA detailed proposal for a change to Flutterc: tech-debtTechnical debt, code quality, testing, etc.toolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions