ripple_action_button 1.0.0 ripple_action_button: ^1.0.0 copied to clipboard
A versatile, state-driven button widget with ripple effects for Flutter. Supports idle, loading, success, and error states with full customization.
Changelog #
Version 1.0.0 - Initial Release #
Features #
-
Button States:
- Supports multiple states:
idle
,loading
,success
, anderror
. - Transitions between states with customizable animations and durations.
- Supports multiple states:
-
Customization:
- Define custom widgets for each state.
- Configurable ripple effects, including color, opacity, and splash settings.
- Customizable button dimensions, decorations, and animation curves.
-
Callbacks:
- Includes lifecycle callbacks for each state:
onIdle
,onLoading
,onSuccess
, andonError
. - Provides
onPressed
to execute async tasks with success/error feedback. onComplete
to notify when the button task finishes, including status.
- Includes lifecycle callbacks for each state:
-
Error Handling:
- Graceful exception handling with
onException
callback.
- Graceful exception handling with
-
Responsive Design:
- Automatically adapts button size or allows explicit width/height settings.
- Auto-hides keyboard upon interaction if enabled.
-
Accessibility:
- Includes semantic labels for better accessibility support.
-
Utilities:
- Programmatically simulate button clicks using
simulateClick()
.
- Programmatically simulate button clicks using