nepninja 0.0.4 nepninja: ^0.0.4 copied to clipboard
Reuse the beautiful animated widgets with less effort
nepninja #
Reuse the beautiful animated widgets with less effort
Usage #
CircularProgressButton(
height: 55,
width: 200,
borderRadius: 30,
backgroundColor: Colors.lightBlueAccent,
fadeDurationInMilliSecond: 400,
text: "Sign In",
fontSize: 30,
progressIndicatorColor: Colors.pinkAccent,
onTap: (reset) {
makeRequest(reset);
},
)
# reset state once validation error or network fails
void makeRequest(Function reset) {
Future.delayed(Duration(seconds: 3), () {
reset();
});
}