Skip to content

IconButton could expose MaterialStateController #139372

@ansolantz

Description

@ansolantz

Is there an existing issue for this?

Use case

The IconButton internally uses a MaterialStateController, however it is not possible for the user to provide one.

Since the other buttons do expose the option to provide our own MaterialStateControllers, I think for consistency (and also for a particular situation I am trying to solve), it would make sense to also expose this option for the IconButton.

Proposal

Give the user the option to provide the MaterialStateController

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions