Skip to content
pubscout

dotted_decoration

3.0.0, released 2 months ago by an unverified publisher

DottedDecoration widget for drawing dotted borders, lines, circles, and ovals.

WASM-readySingle maintainer
$ flutter pub add dotted_decoration
Source repository

What it does

Provides a simple decoration that can be applied to Containers to render dotted outlines or dividers. It supports multiple shapes, dash patterns, colors, and optional background color.

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

Use it when

  • Need a dotted divider or border in a UI
  • Want a quick, customizable dotted shape without custom painters
  • Implementing simple dotted UI elements in Flutter

Skip it when

  • Complex animations or interactive dotted effects
  • Performance-critical scenarios where custom painters are preferred

Strengths

  • Easy to use declarative API
  • Null safety and Dart 3 support
  • Customizable shape, dash, color, and background

Weaknesses

  • Limited to basic shapes, no animation support
  • No support for gradients or complex patterns
  • Not a full widget, only a Decoration

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
Container(
  decoration: DottedDecoration(
    shape: Shape.box,
    borderRadius: BorderRadius.circular(10),
    dash: [2,5],
    color: Colors.red,
  ),
  child: Text('Dotted Decoration'),
);

Alternatives

Packages that do the same job and could replace dotted_decoration.

Works with

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