Skip to content

Add "EdgeInsets? margin" to ButtonStyle #146796

@LinHaoLove

Description

@LinHaoLove

Use case

In some cases, I need the desktop and mobile to have the same button layout.
The Button style is now available in different styles for different platforms. And the only option.

Proposal

Add "EdgeInsets? margin" to ButtonStyle.
If margin==null, the existing style is used.
If margin! =null, I want to be able to achieve the desired style.
Thank you very much.

Metadata

Metadata

Assignees

Labels

c: 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.team-designOwned by Design Languages team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions