future_button 0.1.2
future_button: ^0.1.2 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
copied to clipboard
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.2
copied to clipboard
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';
copied to clipboard