dotted_border
3.1.0, released a year ago by an unverified publisher
A flutter package to easily add dotted borders around widgets.
What it does
Allows users to easily add a dotted or dashed border around any widget. Supports multiple border types including rounded rectangles, circles, ovals, and custom paths.
AI-written summary of version 3.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to draw a dashed or dotted border around a card, button, or container.
- You want to render custom paths with a dash pattern.
Skip it when
- You need standard solid or colored borders already provided by Flutter's BoxDecoration.
Strengths
- Supports multiple border types like Rect, RoundedRect, Circular, Oval, and CustomPath.
- Customizable dash patterns and stroke widths.
Weaknesses
- API has undergone breaking changes in recent major versions.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
DottedBorder(
child: Text(
'Rectangular Border',
style: TextStyle(
fontWeight: FontWeight.bold,
),
),
)Alternatives
Packages that do the same job and could replace dotted_border.
- dotted_decoration
DottedDecoration widget for drawing dotted borders, lines, circles, and ovals.
72Compare - mobkit_dashed_border
Custom border implementation for dashed lines and curves in Flutter.
57Compare - r_dotted_line_border
A Flutter decoration box package for rendering dotted line borders.
50Compare - icon_decoration
Provides a DecoratedIcon widget to add borders and gradients to icons.
50Compare
Works with
Packages commonly used together with dotted_border: ones it builds on, ones built on it, and its own family.