Skip to content

Add ToggleButtons.constraints parameter #39216

@shihaohong

Description

@shihaohong

Currently, there is no way to control the constraints of each button in the ToggleButtons widget. It currently defaults to const BoxConstraints(minWidth: 88.0, minHeight: 36.0), which is the constraints for RawMaterialButton, but this is undesirable if we want it to look like the square toggle buttons:
image

Metadata

Metadata

Assignees

Labels

f: material designflutter/packages/flutter/material repository.frameworkflutter/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