From b46b7186b7334b9158a964322f8945a0d26c3dbb Mon Sep 17 00:00:00 2001 From: Ethiel Date: Fri, 29 Nov 2024 14:20:53 +0000 Subject: [PATCH] fix(progress): add background color property to progress component --- .../views/progress_indicator/progress_indicator.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/core_components/views/progress_indicator/progress_indicator.dart b/lib/core_components/views/progress_indicator/progress_indicator.dart index 81494cd..f1b3dfb 100644 --- a/lib/core_components/views/progress_indicator/progress_indicator.dart +++ b/lib/core_components/views/progress_indicator/progress_indicator.dart @@ -11,6 +11,7 @@ class AppProgressIndicator extends StatelessWidget { this.borderWidth = 1, this.progressColor, this.borderRadius = 6, + this.backgroundColor, }) : super(key: key); final double level; @@ -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) { @@ -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( progressColor ?? InterfaceColors.action.defaultColor!, ),