progress_state_button
1.0.4, released 5 years ago by slmyldz.com
A customizable progress button widget with multiple states for Flutter.
What it does
Provides a button widget that transitions between different states such as idle, loading, success, and fail with customizable widgets, icons, and colors.
AI-written summary of version 1.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a button that reflects asynchronous action states like loading, success, and failure.
- You want built-in animated transitions between button states.
Skip it when
- You require complex multi-step form validation logic built directly into the button.
- You need state management solutions that go beyond visual button states.
Strengths
- Supports custom widgets or pre-built icon buttons for different states.
- Customizable dimensions, colors, radii, and animations.
Weaknesses
- Limited to specific button states out of the box.
- Not documented for advanced interaction behaviors beyond basic state switching.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
ProgressButton(
stateWidgets: {
ButtonState.idle: Text("Idle"),
ButtonState.loading: Text("Loading"),
},
stateColors: {
ButtonState.idle: Colors.grey,
ButtonState.loading: Colors.blue,
},
onPressed: () {},
state: ButtonState.idle,
)Alternatives
Packages that do the same job and could replace progress_state_button.
- timer_button
A Flutter button widget that becomes enabled after a designated time interval.
84Compare - easy_loading_button
A customizable Material button widget with built-in loading states and width animations.
50Compare - sn_progress_dialog
Customizable progress dialog package for Flutter that captures the progress value.
75Compare - flutter_easyloading
Lightweight, customizable loading and toast overlay for Flutter without BuildContext.
71Compare