Skip to content

Proposal to add default duration for AnimatedSwitcher #88687

@nilsreichardt

Description

@nilsreichardt

I'm using the AnimatedSwitcher widget in a lot of situations, and I'm loving this widget ❤️ But I'm forced to pass always a duration, because duration is required.

Is there a specific reason, why there is no default value for duration, like 250ms? Reading through Material Design Guidelines, a default value of 250ms would be a good choice. Of course, the developer can still provide his own duration, because it would only be a default value.

I would love to see an answer to this 🙂 If we can remove the required tag from duration, I can open a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: animationAnimation APIsc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.r: invalidIssue is closed as not valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions