fix: Adjust border width and improve layout of stat card in coverage quick stats
This commit is contained in:
@@ -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),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -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,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user