home responsive and some changes
This commit is contained in:
@@ -8,12 +8,18 @@ class ProgressBarColumn extends StatefulWidget {
|
||||
required this.text,
|
||||
required this.value,
|
||||
required this.amount,
|
||||
this.circularProgressIndicatorWidth,
|
||||
this.circularProgressIndicatorHeight,
|
||||
this.strokeWidth,
|
||||
super.key,
|
||||
});
|
||||
|
||||
final String text;
|
||||
final double value;
|
||||
final String amount;
|
||||
final double? circularProgressIndicatorWidth;
|
||||
final double? circularProgressIndicatorHeight;
|
||||
final double? strokeWidth;
|
||||
|
||||
@override
|
||||
State<ProgressBarColumn> createState() => _ProgressBarColumnState();
|
||||
@@ -66,15 +72,15 @@ class _ProgressBarColumnState extends State<ProgressBarColumn>
|
||||
|
||||
Widget _progressIndicator() {
|
||||
return SizedBox(
|
||||
width: 96.0.w(),
|
||||
height: 96.0.w(),
|
||||
width: widget.circularProgressIndicatorWidth ?? 96.0.w(),
|
||||
height: widget.circularProgressIndicatorHeight ?? 96.0.w(),
|
||||
child: AnimatedBuilder(
|
||||
animation: _animation,
|
||||
builder:
|
||||
(context, child) => CircularProgressIndicator(
|
||||
backgroundColor: Color(0xFFE1E1E1),
|
||||
strokeCap: StrokeCap.round,
|
||||
strokeWidth: 8.0,
|
||||
strokeWidth: widget.strokeWidth ?? 6.0,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(AppColors.jellyBean),
|
||||
value: _animation.value,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user