Skip to content
pubscout

progress_border

0.1.5, released 3 years ago by shirne.com

A BoxBorder that draws part of a border based on progress.

WASM-ready
$ flutter pub add progress_border
Source repository

What it does

Draws a partial border around circles, rectangles, and rounded rectangles according to a progress value. It supports background borders, background colors, and gradients.

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

Use it when

  • You need to animate a border drawing around a container based on progress
  • You want to create circular or rectangular progress indicators using borders

Skip it when

  • You need complex custom path metric caching features that are not yet implemented
  • You are using a Flutter version lower than 3.7 (unless using version 0.0.x)

Strengths

  • Supports circle, rect, and rectangle shapes
  • Allows background border and gradient painters
  • Easy integration with standard BoxDecoration

Weaknesses

  • PathMetric cache and Custom Paint features are still under construction
  • Limited documentation beyond the basic README example

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
Container(
    width: 100,
    height: 100,
    decoration: BoxDecoration(
        color: Colors.blue.withAlpha(100),
        border: ProgressBorder.all(
        color: Colors.blue,
        width: 8,
        progress: animationController.value,
        ),
    ),
);

Alternatives

Packages that do the same job and could replace progress_border.