flutter_animate_border
1.2.3, released 10 months ago by dishank.dev
Wrap around existing widgets to animate a border line for loading states or colorful borders.
WASM-ready
What it does
It provides a widget wrapper that animates a border line around any existing widget. It supports controllers to start, stop, or freeze the animation, along with gradient colors, border radius, and padding controls.
AI-written summary of version 1.2.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to indicate a loading state with an animated border around a widget.
- You need a colorful gradient border with custom thickness and radius.
Skip it when
- You need standard physics-based motion or complex timeline sequencing.
- You need support for custom non-rectangular container shapes.
Strengths
- Includes a controller to start, stop, and freeze the border animation.
- Supports gradients, custom border radius, and thickness controls.
Weaknesses
- Does not yet support custom container shapes.
- Upcoming features like progress bar support are not yet implemented.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
AnimateBorder(
controller: _controller,
child: Container(
padding: EdgeInsets.all(16),
child: Text('Loading State'),
),
)Alternatives
Packages that do the same job and could replace flutter_animate_border.
- flutter_animate
Provides a comprehensive general-purpose animation library for widgets.
70Compare
Works with
Packages commonly used together with flutter_animate_border: ones it builds on, ones built on it, and its own family.