Skip to content
pubscout

loading_icon_button

1.1.0, released 2 months ago by mohesu.com

Flutter loading buttons with state machine, success/error states and animated thinking-orbs.

WASM-ready
$ flutter pub add loading_icon_button
Source repository

What it does

Provides customizable Flutter loading buttons with built-in idle, loading, success, error, and disabled states. Includes animated thinking-orb indicators for AI interfaces and support for controllers and progress indicators.

AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need buttons that transition through loading, success, and error states
  • You want animated thinking-orb indicators for AI or agent interfaces
  • You need to drive button states externally via a controller or boolean flags

Skip it when

  • You require complex form validation handling directly inside the button
  • You only need standard native Material buttons without any loading states

Strengths

  • Supports multiple button types (elevated, filled, outlined, text, icon)
  • Includes built-in animated thinking-orbs for AI interfaces
  • Offers both widget-owned and controller-driven state management
  • Pure Dart with zero external dependencies

Weaknesses

  • Legacy default dimensions require manual opt-in to content sizing
  • Some default colour strategies are not dark-mode safe without explicit configuration

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
LoadingButton(
  onPressed: () async => submit(),
  onSuccess: () => debugPrint('done'),
  child: const Text('Submit'),
)

Alternatives

Packages that do the same job and could replace loading_icon_button.