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,33 +72,29 @@ 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( Text(
spacing: UiConstants.space1, value,
children: [ style: UiTypography.title1b.copyWith(
Text( color: color,
value, ),
style: UiTypography.title1b.copyWith( ),
color: color, Text(
), label,
), style: UiTypography.body3r.copyWith(
Text( color: color,
label, ),
style: UiTypography.body3r.copyWith(
color: color,
),
),
],
), ),
], ],
), ),