-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from atsign-foundation/feat/596
Feat/596
- Loading branch information
Showing
10 changed files
with
309 additions
and
130 deletions.
There are no files selected for viewing
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
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
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
32 changes: 32 additions & 0 deletions
32
lib/screens/common_widgets/labelled_circular_progress.dart
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
import '../../utils/colors.dart'; | ||
|
||
class LabelledCircularProgressIndicator extends StatelessWidget { | ||
double? value; | ||
LabelledCircularProgressIndicator({this.value}); | ||
@override | ||
Widget build(BuildContext context) { | ||
return SizedBox( | ||
child: Stack( | ||
children: [ | ||
CircularProgressIndicator(value: value), | ||
value != null | ||
? Positioned( | ||
top: 10, | ||
child: Padding( | ||
padding: EdgeInsets.only(left: 8), | ||
child: Text((value! * 100).toStringAsFixed(0) + '%', | ||
style: TextStyle( | ||
fontSize: 10, | ||
fontWeight: FontWeight.bold, | ||
color: ColorConstants.blueText, | ||
)), | ||
), | ||
) | ||
: SizedBox() | ||
], | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.