Skip to content

Add styling to Divider like solid, dashed, dotted, etc #105887

@txufiknr

Description

@txufiknr

Use case

I need to style my dividers.

Proposal

Add type property in Divider() and VerticalDivider()

example:

Divider(
  color: Colors.grey,
  thickness: 2,
  type: DividerType.dashed,
),

Currently we can use dotted_border package, but it would be better if we able to achieve this simple need without the use of any 3rd party package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions