awaitable_button
1.3.0, released 4 years ago by altive.co.jp
Button that shows a progress indicator while awaiting async work.
What it does
AwaitableButton widgets replace normal buttons when an async operation is triggered. They automatically display an indicator, prevent double taps, and expose callbacks for completion or error handling.
AI-written summary of version 1.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need to prevent multiple taps during async work
- Want a quick loading indicator on a button
- Need error handling callbacks on button press
Skip it when
- You need a fully custom animation or state machine beyond a simple loading indicator
- You are building a complex form that requires more advanced state management
Strengths
- Easy to integrate, no extra dependencies
- Supports multiple Material button styles
- Customizable indicator, color, size, and executing child
- Handles success and error callbacks
Weaknesses
- Only works with Flutter, not web-only widgets
- Limited to simple async patterns, no stream support
- No built‑in theming beyond buttonStyle
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
```dart
import 'package:awaitable_button/awaitable_button.dart';
AwaitableElevatedButton(
onPressed: () async {
await Future.delayed(const Duration(seconds: 2));
},
child: const Text('Load'),
indicator: const CircularProgressIndicator(),
);
```Alternatives
Packages that do the same job and could replace awaitable_button.
- signal_strength_indicator
Customizable signal strength indicator widget with bar and sector visual variants.
70Compare - steps_indicator
A Flutter plugin to display a simple steps indicator line widget.
50Compare - widget_tooltip
A customizable tooltip widget for Flutter with multiple trigger modes and smart positioning
48Compare - flutter_qiblah
Widget that displays Qiblah direction using device sensors and location.
56Compare