fix: Adjust border width and improve layout of stat card in coverage quick stats

This commit is contained in:
Achintha Isuru
2026-03-10 12:08:51 -04:00
parent 825cffbc33
commit a22a092b56
2 changed files with 14 additions and 18 deletions

View File

@@ -270,7 +270,7 @@ class _CoveragePageState extends State<CoveragePage> {
children: <Widget>[ children: <Widget>[
Column( Column(
spacing: UiConstants.space2, spacing: UiConstants.space2,
children: [ children: <Widget>[
if (state.stats != null && state.stats!.late > 0) ...<Widget>[ if (state.stats != null && state.stats!.late > 0) ...<Widget>[
LateWorkersAlert(lateCount: state.stats!.late), LateWorkersAlert(lateCount: state.stats!.late),
], ],

View File

@@ -72,20 +72,18 @@ class _StatCard extends StatelessWidget {
borderRadius: UiConstants.radiusLg, borderRadius: UiConstants.radiusLg,
border: Border.all( border: Border.all(
color: color, color: color,
width: 0.75, width: 0.5,
), ),
), ),
child: Row( child: Row(
spacing: UiConstants.space2, spacing: UiConstants.space2,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[ children: <Widget>[
Icon( Icon(
icon, icon,
color: color, color: color,
size: UiConstants.space6, size: UiConstants.space6,
), ),
Row(
spacing: UiConstants.space1,
children: [
Text( Text(
value, value,
style: UiTypography.title1b.copyWith( style: UiTypography.title1b.copyWith(
@@ -100,8 +98,6 @@ class _StatCard extends StatelessWidget {
), ),
], ],
), ),
],
),
); );
} }
} }