progress flutter button
a material flutter button that supports progress and error visuals.
getting started
progressbutton is designed to be easy to use and customizable. without going into much detail, you can see a demo and example code below. what more do you need from a single class package??
- first, add dependency to your pubspec.yaml
dependencies:
progress_button: ^0.0.1
- second, add progress button to your widget tree
val progressbutton = progressbutton(
onpressed: voidcallback,
text: "login",
buttonstate: buttonstate.normal,
pbackgroundcolor: theme.of(context).primarycolor,
ptextcolor: theme.of(context).primarytexttheme.button.color,
pprogresscolor: theme.of(context).primarycolor,
);
of course you can change the buttonstate anytime you want by using streambuilders and such. progressbutton reacts accordingly to changes.
Comments are closed.