pulse_glow_button
An eye-catching call-to-action button for Flutter featuring animated radiant glow, expanding sonar ripples, and press physics.
β¨ 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.