chore: refactor UI consistency using design system tokens and remove LucideIcons

This commit is contained in:
2026-02-12 18:37:31 +05:30
parent d7d9a34f07
commit ad6db7d851
62 changed files with 397 additions and 370 deletions

View File

@@ -73,7 +73,7 @@ class CoverageHeader extends StatelessWidget {
width: UiConstants.space10,
height: UiConstants.space10,
decoration: BoxDecoration(
color: UiColors.primaryForeground.withOpacity(0.2),
color: UiColors.primaryForeground.withValues(alpha: 0.2),
shape: BoxShape.circle,
),
child: const Icon(
@@ -96,7 +96,7 @@ class CoverageHeader extends StatelessWidget {
width: UiConstants.space8,
height: UiConstants.space8,
decoration: BoxDecoration(
color: Colors.transparent,
color: UiColors.transparent,
borderRadius: UiConstants.radiusMd,
),
child: IconButton(
@@ -109,7 +109,7 @@ class CoverageHeader extends StatelessWidget {
padding: EdgeInsets.zero,
constraints: const BoxConstraints(),
style: IconButton.styleFrom(
hoverColor: UiColors.primaryForeground.withOpacity(0.2),
hoverColor: UiColors.primaryForeground.withValues(alpha: 0.2),
shape: RoundedRectangleBorder(
borderRadius: UiConstants.radiusMd,
),
@@ -127,7 +127,7 @@ class CoverageHeader extends StatelessWidget {
Container(
padding: const EdgeInsets.all(UiConstants.space4),
decoration: BoxDecoration(
color: UiColors.primaryForeground.withOpacity(0.1),
color: UiColors.primaryForeground.withValues(alpha: 0.1),
borderRadius: UiConstants.radiusLg,
),
child: Row(
@@ -139,7 +139,7 @@ class CoverageHeader extends StatelessWidget {
Text(
'Coverage Status',
style: UiTypography.body2r.copyWith(
color: UiColors.primaryForeground.withOpacity(0.7),
color: UiColors.primaryForeground.withValues(alpha: 0.7),
),
),
Text(
@@ -156,7 +156,7 @@ class CoverageHeader extends StatelessWidget {
Text(
'Workers',
style: UiTypography.body2r.copyWith(
color: UiColors.primaryForeground.withOpacity(0.7),
color: UiColors.primaryForeground.withValues(alpha: 0.7),
),
),
Text(

View File

@@ -19,10 +19,10 @@ class LateWorkersAlert extends StatelessWidget {
return Container(
padding: const EdgeInsets.all(UiConstants.space3),
decoration: BoxDecoration(
color: UiColors.destructive.withOpacity(0.1),
color: UiColors.destructive.withValues(alpha: 0.1),
borderRadius: UiConstants.radiusLg,
border: Border.all(
color: UiColors.destructive.withOpacity(0.3),
color: UiColors.destructive.withValues(alpha: 0.3),
),
),
child: Row(