CHORE: Update UI spacing and colors in client home widgets

Added spacing to the ClientHomePage widget column and updated icon and background colors in ActionsWidget to use theme constants. Adjusted padding and removed boxShadow from _ActionCard for a cleaner appearance.
This commit is contained in:
Achintha Isuru
2026-01-22 11:32:30 -05:00
parent f882a0a7d0
commit 6ef691881a
2 changed files with 6 additions and 11 deletions

View File

@@ -256,6 +256,7 @@ class ClientHomePage extends StatelessWidget {
final title = _getWidgetTitle(id);
return Column(
spacing: UiConstants.space2,
children: [
Row(
children: [
@@ -302,7 +303,8 @@ class ClientHomePage extends StatelessWidget {
),
],
),
const SizedBox(height: UiConstants.space2),
// Widget content
Opacity(
opacity: isVisible ? 1.0 : 0.4,
child: IgnorePointer(

View File

@@ -46,8 +46,8 @@ class ActionsWidget extends StatelessWidget {
icon: UiIcons.add,
color: UiColors.white,
borderColor: UiColors.border,
iconBgColor: const Color(0xFFEFF6FF),
iconColor: const Color(0xFF2563EB),
iconBgColor: UiColors.primaryForeground,
iconColor: UiColors.primary,
textColor: UiColors.textPrimary,
subtitleColor: UiColors.textSecondary,
onTap: onCreateOrderPressed,
@@ -88,18 +88,11 @@ class _ActionCard extends StatelessWidget {
return GestureDetector(
onTap: onTap,
child: Container(
height: 100,
padding: const EdgeInsets.all(UiConstants.space3),
padding: const EdgeInsets.all(UiConstants.space4),
decoration: BoxDecoration(
color: color,
borderRadius: UiConstants.radiusLg,
border: Border.all(color: borderColor),
boxShadow: [
BoxShadow(
color: UiColors.black.withValues(alpha: 0.02),
blurRadius: 4,
),
],
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,