Skip to content
pubscout

styled_divider

1.0.6, released 3 weeks ago by wenkaifan.com

Drop-in replacements for Flutter's Divider and VerticalDivider supporting multiple line styles.

WASM-ready
$ flutter pub add styled_divider
Source repository

What it does

Provides StyledDivider and StyledVerticalDivider widgets that mimic the standard Flutter dividers while adding support for solid, dotted, dashed, and dash-dotted lines. They seamlessly integrate with the ambient DividerTheme and ThemeData.

AI-written summary of version 1.0.6, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need dotted, dashed, or dash-dotted divider lines in your Flutter UI.
  • You want drop-in replacements for standard Divider and VerticalDivider widgets that respect theme settings.

Skip it when

  • You only require standard solid dividers that are fully covered by Flutter's built-in Divider widget.
  • You need highly customized custom-painted divider paths beyond the four built-in line styles.

Strengths

  • Drop-in replacements for standard Flutter divider widgets
  • Supports multiple line styles including dotted, dashed, and dash-dotted
  • Follows ambient DividerTheme and ThemeData

Weaknesses

  • Defaults differ slightly from Material 3 built-in dividers requiring explicit thickness or color adjustments to match
  • Limited to only four predefined line styles

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
const divider = StyledDivider(
  color: Colors.green,
  height: 50,
  thickness: 2,
  lineStyle: DividerLineStyle.dotted,
  indent: 20,
  endIndent: 20,
);

Alternatives

Packages that do the same job and could replace styled_divider.

Works with

Packages commonly used together with styled_divider: ones it builds on, ones built on it, and its own family.