Skip to content
pubscout

glowy_borders

1.0.2, released 3 years ago by inferialize.com

A wrapper widget to animate borders and glows around widgets using gradients.

WASM-ready
$ flutter pub add glowy_borders
Source repository

What it does

It provides an AnimatedGradientBorder wrapper widget that adds animated borders and glowing effects to any child widget. Developers can either let it loop indefinitely or control the animation progress externally.

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

Use it when

  • You want to highlight a specific UI element with an animated glowing border.
  • You need a custom gradient border that loops an animation continuously.

Skip it when

  • You need to use it extensively throughout the app, as the underlying Backdrop Filter can cause performance issues.
  • You are using stretched alignments without providing the stretchAlongAxis parameter.

Strengths

  • Easy to wrap around existing widgets.
  • Supports both indefinite looping and manual animation progress control.
  • Customizable border size, glow size, and gradient colors.

Weaknesses

  • Uses Backdrop Filter under the hood which may impact performance if used heavily.
  • Requires matching border radius on both the wrapper and the child for a true border effect.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

AnimatedGradientBorder(
  borderSize: 2,
  glowSize: 10,
  gradientColors: [
    Colors.transparent,
    Colors.purple.shade50
  ],
  borderRadius: BorderRadius.all(Radius.circular(16)),
  child: Container(width: 100, height: 100),
)

Alternatives

Packages that do the same job and could replace glowy_borders.

  • flutter_animate

    Provides a comprehensive general-purpose animation library for widgets instead of just specialized borders.