dotted_line
3.3.0, released 6 months ago by umechanhika.com
A Flutter widget to draw customizable dotted lines.
WASM-ready
What it does
Allows you to draw horizontal or vertical dotted lines in Flutter applications. It supports customizing line length, thickness, dash length, colors, gradients, and radius.
AI-written summary of version 3.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display a custom dotted or dashed line in your UI.
- You require gradients, rounded corners, or custom gaps inside a divider line.
Skip it when
- You only need a standard solid divider line provided by Flutter natively.
- You are displaying hundreds of dotted lines in a large list without testing performance impact with RepaintBoundary.
Strengths
- Highly customizable dash and gap appearance, including gradients and radii.
- Supports performance optimization via an optional RepaintBoundary.
- Cross-platform support across Android, iOS, web, macOS, Windows, and Linux.
Weaknesses
- Can cause performance issues or dropped frames if repainted constantly inside frequently rebuilding widgets unless addRepaintBoundary is enabled.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:dotted_line/dotted_line.dart';
DottedLine()Alternatives
Packages that do the same job and could replace dotted_line.
- dotted_border
Pick dotted_border if you need to draw dotted borders around widgets rather than standalone lines.
63Compare