future_button 0.1.1 future_button: ^0.1.1 copied to clipboard
Customizable Material and Cupertino buttons with progress bars. Useful if you want to show a loading indicator when user presses some action, and show the result afterwards.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add future_button
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
future_button: ^0.1.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:future_button/future_button.dart';