pulse_glow_button

An eye-catching call-to-action button for Flutter featuring animated radiant glow, expanding sonar ripples, and press physics.

pub package License: MIT


✨ Features

  • 🌟 Radiant Ambient Glow: Smooth, organic breathing light aura radiating around the button container.
  • πŸ“‘ Concentric Sonar Ripples: Animated pulse wave rings expanding outwards with progressive fade.
  • πŸ“³ Press Feedback & Haptics: Realistic spring compression scale on touch with tactile haptics.
  • ⏳ Integrated Loading State: Seamless switch to an internal progress spinner (isLoading: true).
  • 🎨 Gradient & Custom Shapes: Works effortlessly with linear gradients, rounded rectangles, and floating circular buttons.
  • 🧹 Zero External Dependencies: Pure Flutter SDK implementation.

πŸš€ Getting Started

Add pulse_glow_button to your pubspec.yaml:

dependencies:
  pulse_glow_button: ^1.0.0

Import the package:

import 'package:pulse_glow_button/pulse_glow_button.dart';

πŸ’‘ Quick Example

PulseGlowButton(
  text: 'Claim Reward',
  icon: Icon(Icons.stars, color: Colors.amber),
  style: PulseGlowStyle(
    glowColor: Color(0xFF8B5CF6),
    backgroundColor: Color(0xFF7C3AED),
  ),
  onTap: () {
    print('Button pressed!');
  },
)

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Created by Shahzain Baloch.

Libraries

pulse_glow_button