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:
@@ -256,6 +256,7 @@ class ClientHomePage extends StatelessWidget {
|
|||||||
final title = _getWidgetTitle(id);
|
final title = _getWidgetTitle(id);
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
|
spacing: UiConstants.space2,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
@@ -302,7 +303,8 @@ class ClientHomePage extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: UiConstants.space2),
|
|
||||||
|
// Widget content
|
||||||
Opacity(
|
Opacity(
|
||||||
opacity: isVisible ? 1.0 : 0.4,
|
opacity: isVisible ? 1.0 : 0.4,
|
||||||
child: IgnorePointer(
|
child: IgnorePointer(
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ class ActionsWidget extends StatelessWidget {
|
|||||||
icon: UiIcons.add,
|
icon: UiIcons.add,
|
||||||
color: UiColors.white,
|
color: UiColors.white,
|
||||||
borderColor: UiColors.border,
|
borderColor: UiColors.border,
|
||||||
iconBgColor: const Color(0xFFEFF6FF),
|
iconBgColor: UiColors.primaryForeground,
|
||||||
iconColor: const Color(0xFF2563EB),
|
iconColor: UiColors.primary,
|
||||||
textColor: UiColors.textPrimary,
|
textColor: UiColors.textPrimary,
|
||||||
subtitleColor: UiColors.textSecondary,
|
subtitleColor: UiColors.textSecondary,
|
||||||
onTap: onCreateOrderPressed,
|
onTap: onCreateOrderPressed,
|
||||||
@@ -88,18 +88,11 @@ class _ActionCard extends StatelessWidget {
|
|||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
child: Container(
|
child: Container(
|
||||||
height: 100,
|
padding: const EdgeInsets.all(UiConstants.space4),
|
||||||
padding: const EdgeInsets.all(UiConstants.space3),
|
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: color,
|
color: color,
|
||||||
borderRadius: UiConstants.radiusLg,
|
borderRadius: UiConstants.radiusLg,
|
||||||
border: Border.all(color: borderColor),
|
border: Border.all(color: borderColor),
|
||||||
boxShadow: [
|
|
||||||
BoxShadow(
|
|
||||||
color: UiColors.black.withValues(alpha: 0.02),
|
|
||||||
blurRadius: 4,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
|||||||
Reference in New Issue
Block a user