future_button library

Classes

FutureCupertinoButton
A Future version of CupertinoButton. See CupertinoButton for parameter descriptions.
FutureFlatButton
A Future version of the material FlatButton. See FlatButton for parameter descriptions.
FutureIconButton
A Future version of the material IconButton. See IconButton for parameter descriptions.
FutureOutlineButton
A Future version of the material OutlineButton. See OutlineButton for parameter descriptions.
FutureRaisedButton
A Future version of the material RasiedButton. See RaisedButton for parameter descriptions.
GenericFutureButtonState<T extends GenericFutureButtonWidget>
This is the state of the GenericFutureButtonWidget. If you want to implement your own Future button, take a look at FutureRaisedButton or other buttons.
GenericFutureButtonWidget
A generic class for all Future buttons. See FutureRaisedButton or any FutureButton for info on how to create your own Future button.

Properties

defaultCupertinoProgressIndicatorBuilder WidgetBuilder
A default Cupertino progress indicator. It uses Cupertino.CupertinoActivityIndicator. It's used by default in FutureCupertinoButton.
final
defaultFailureResultIndicatorBuilder WidgetBuilder
A default widget for "failed" result indicator.
final
defaultMaterialProgressIndicatorBuilder WidgetBuilder
A default Material progress indicator. It uses Material.CircularProgressIndicator. It's used by default in FutureFlatButton, FutureIconButton, FutureOutlineButton and FutureRaisedButton.
final
defaultSuccessResultIndicatorBuilder WidgetBuilder
A default widget for "success" result indicator.
final

Enums

FutureButtonState
ProgressIndicatorLocation
The location of the progress indicator. left and right means that the progress indicator will be on the left or on the right, respectively. center means that the progress indicator will be centered and will hide child.

Typedefs

FutureCallback = Future<void> Function()
An onPressed function type for GenericFutureButtonWidget. It's different from default VoidCallback in a sense that the action of the widget is asynchronous.