any_animated_button
0.0.4, released 4 years ago by appvinio.com
An expandable button that animates between idle, progress, success, and error states using BLoC.
What it does
It provides customizable buttons that react to background processes by morphing shapes and displaying loading, success, or error states. It integrates with the flutter_bloc package to manage state changes during asynchronous operations.
AI-written summary of version 0.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want buttons to give visual feedback for asynchronous actions like API calls.
- Your project already utilizes flutter_bloc for state management.
Skip it when
- You do not use the BLoC pattern in your application.
- You need to dynamically update text inside the button when its width is set to null.
Strengths
- Built-in support for progress, success, and error states via BLoC.
- Includes default parameter factories for quick styling of different button states.
Weaknesses
- Known bug where updating text on a button with a null width does not adjust properly.
- Requires using the dartz package for Either types in actions.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
not documented
MinimalisticButton(
bloc: _successBloc,
text: 'Animated success button',
onTap: () => _successBloc.add(TriggerAnyAnimatedButtonEvent(13)),
)Alternatives
Packages that do the same job and could replace any_animated_button.
- progress_state_button
A customizable progress button widget with multiple states for Flutter.
50Compare - loading_icon_button
Flutter loading buttons with state machine, success/error states and animated thinking-orbs.
69Compare - gradient_elevated_button
Custom elevated button with gradient background for Flutter apps
58Compare - multi_state_button
A Flutter button widget that supports multiple customizable states and animated transitions.
39Compare
Works with
Packages commonly used together with any_animated_button: ones it builds on, ones built on it, and its own family.
- equatableany_animated_button depends on itProvides value‑based equality for Dart objects without manual == and hashCode.
- flutter_blocany_animated_button depends on itFlutter widgets to easily integrate blocs and cubits for state management.
- dartzany_animated_button depends on itFunctional programming library with monads, immutable collections, and combinators for Dart