Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Function to return either a spinner or some text depending on whether a result is available
- Widget loadingSpinner() {
- if (loading == true) {
- return SpinKitDoubleBounce(
- color: Colors.red,
- size: 50,
- );
- } else {
- return Text(
- '$userPercentage%',
- style: kPrimaryTextStyle.copyWith(
- decoration: TextDecoration.underline, fontSize: 44),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement