Skip to content
pubscout

progress_state_button

1.0.4, released 5 years ago by slmyldz.com

A customizable progress button widget with multiple states for Flutter.

WASM-ready
$ flutter pub add progress_state_button
Source repository

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.