Skip to content
pubscout

dotted_border

3.1.0, released a year ago by an unverified publisher

A flutter package to easily add dotted borders around widgets.

WASM-ready
$ flutter pub add dotted_border
Source repository

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.

Works with

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