Created
April 25, 2019 17:57
-
-
Save Gazer/6ddeef79ab8ac1cae807c561a5bf739d to your computer and use it in GitHub Desktop.
SliderWidget API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
SliderWidget( | |
icon: Icons.arrow_forward, | |
text: "Deslizá para transferir", | |
color: Colors.red, | |
onSubmit: (Function onFinish, Function onError) async { | |
await pause(const Duration(seconds: 1)); | |
onError(); | |
}, | |
), | |
SizedBox(height: 16.0,), | |
SliderWidget( | |
icon: Icons.arrow_forward, | |
text: "Go!", | |
color: Colors.green, | |
onSubmit: (Function onFinish, Function onError) async { | |
await pause(const Duration(seconds: 1)); | |
onFinish(); | |
}, | |
) | |
], | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment