Skip to content
pubscout

dotted_line_flutter

2.1.8, released 2 years ago by puneetdev.in

Draw customizable dotted, dashed, and gradient lines, shapes, and text in Flutter.

WASM-ready
$ flutter pub add dotted_line_flutter
Source repository

What it does

Allows you to draw customizable dotted and dashed lines in horizontal or vertical directions. It also supports shadow effects, gradient colors, custom shapes, and dotted text rendering.

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

Use it when

  • You need to draw custom dotted or dashed lines, boxes, or shapes.
  • You want to apply gradient colors or shadows to line borders or shapes.

Skip it when

  • You are looking for heavy-duty charting or plotting tools.
  • You need complex physics or game engines.

Strengths

  • Supports multiple shapes like stars, cubes, and text rendered in dots.
  • Includes gradient and shadow support for visual depth.
  • Customizable dash width, gap, and orientation.

Weaknesses

  • Limited to specific pre-built shapes and dotted components.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
DottedLine(
  axis: Axis.horizontal,
  lineThickness: 2,
  dashGap: 4,
  dashWidth: 6,
  colors: [Colors.red, Colors.blue],
)

Alternatives

Packages that do the same job and could replace dotted_line_flutter.