glass_animated_button 1.0.8 copy "glass_animated_button: ^1.0.8" to clipboard
glass_animated_button: ^1.0.8 copied to clipboard

A customizable animated glassmorphic button for Flutter.

glass_animated_button #

Screenshot

A beautiful animated button with a frosted glass (glassmorphism) effect.
You can customize text, blur, color, animation, gradients, shadow, and more.

Features #

  • Tap animation with customizable duration and curve
  • Blur glass effect using BackdropFilter
  • Customizable color, gradient, text, borderRadius
  • Optional icon
  • Optional shadow/glow effect
  • Loading and disabled states
  • Haptic feedback on tap (optional)
  • Accessibility: semantics and keyboard support
  • NEW: Background image support (asset or network)

Usage #

// Asset image background
GlassAnimatedButton(
  text: "With Asset BG",
  onPressed: () {},
  backgroundImage: AssetImage('assets/bg.jpg'),
)

// Network image background
GlassAnimatedButton(
  text: "With Network BG",
  onPressed: () {},
  backgroundImage: NetworkImage('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=400&q=80'),
)

Loading & Disabled Example #

GlassAnimatedButton(
  text: "Download",
  isLoading: true, // shows a spinner
  isDisabled: true, // disables the button
  onPressed: () {},
)

Accessibility #

  • Fully accessible with screen readers
  • Keyboard support (Enter/Space)

See the example/ for a full demo.

9
likes
160
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable animated glassmorphic button for Flutter.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on glass_animated_button