home responsive and some changes

This commit is contained in:
amirrezaghabeli
2025-08-09 08:18:05 +03:30
parent 4179a0b292
commit eaa9ef18c2
16 changed files with 634 additions and 210 deletions
+9 -3
View File
@@ -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,
),