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
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.
- dotted_decoration
DottedDecoration widget for drawing dotted borders, lines, circles, and ovals.
72Compare - prototype_constrained_box
A ConstrainedBox widget where constraints are determined by another prototype widget.
69Compare - circular_widgets
Display widgets in a circle with customizable radius and spacing.
45Compare - flutter_box_transform
Flutter widget for programmatic box resizing and dragging with constraints.
68Compare