Skip to content

Commit

Permalink
fix(progress): add background color property to progress component
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethiel97 committed Nov 29, 2024
1 parent 8d3b309 commit b46b718
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class AppProgressIndicator extends StatelessWidget {
this.borderWidth = 1,
this.progressColor,
this.borderRadius = 6,
this.backgroundColor,
}) : super(key: key);

final double level;
Expand All @@ -19,6 +20,7 @@ class AppProgressIndicator extends StatelessWidget {
final Color borderColor;
final double borderWidth;
final Color? progressColor;
final Color? backgroundColor;

@override
Widget build(BuildContext context) {
Expand All @@ -35,7 +37,7 @@ class AppProgressIndicator extends StatelessWidget {
borderRadius: BorderRadius.circular(borderRadius),
child: LinearProgressIndicator(
value: level,
backgroundColor: Colors.transparent,
backgroundColor:backgroundColor?? Colors.transparent,
valueColor: AlwaysStoppedAnimation<Color>(
progressColor ?? InterfaceColors.action.defaultColor!,
),
Expand Down

0 comments on commit b46b718

Please sign in to comment.