flutter_dash
1.0.0, released 4 years ago by an unverified publisher
A small library to draw dashed lines in Flutter.
$ flutter pub add flutter_dashWhat 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.
- staggered_grid_view_flutter
A Flutter widget for creating staggered grid layouts.
36Compare - styled_divider
Drop-in replacements for Flutter's Divider and VerticalDivider supporting multiple line styles.
80Compare - dotted_line
A Flutter widget to draw customizable dotted lines.
75Compare - flutter_painter
A Flutter widget for drawing scribbles, text, shapes and images on a canvas.
74Compare