Skip to content
pubscout

flutter_dash

1.0.0, released 4 years ago by an unverified publisher

A small library to draw dashed lines in Flutter.

WASM-ready
$ flutter pub add flutter_dash

What it does

Provides a Dash widget that allows developers to draw horizontal or customized dashed lines in their Flutter applications. Users can configure parameters such as direction, length, dash length, thickness, color, border radius, and gap.

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

Use it when

  • You need to draw a dashed line or divider in a Flutter UI
  • You want to customize dash color, thickness, and spacing without writing custom painting code

Skip it when

  • You need complex vector graphics or charts
  • You require advanced path manipulations not supported by the basic parameters

Strengths

  • Simple and straightforward API
  • Configurable properties like direction, length, dash thickness, and gaps

Weaknesses

  • Very limited scope focusing only on dashed lines
  • Not documented for advanced use cases beyond basic parameters

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Just add flutter_dash as a dependency in your pubspec.yaml file.

Dash(
  direction: Axis.horizontal,
  length: 132,
  dashLength: 12,
  dashColor: Colors.red
)

Alternatives

Packages that do the same job and could replace flutter_dash.