Skip to content

SegmentedButton.stylefrom feature for SegmentedButton #138289

@AcarFurkan

Description

@AcarFurkan

Is there an existing issue for this?

Use case

Why doesn't SegmentedButtom have a styleFrom static method like other buttons? styleFrom property can be added. In this way, the user will be able to change the color first without checking the MaterialState states.

current
image

suggested style
image

Proposal

We just need to add the styleFrom method like other supported buttons.

image

Metadata

Metadata

Assignees

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