From e6ca19f6e357c73b8bb7e3053d6e91b0b08d09e5 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Sun, 3 Aug 2025 23:05:45 +0200 Subject: [PATCH] adjusted products color --- .../widget_offering_lightmeter_pro.dart | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/lib/screens/lightmeter_pro/components/offering/widget_offering_lightmeter_pro.dart b/lib/screens/lightmeter_pro/components/offering/widget_offering_lightmeter_pro.dart index f7c9500..f1424fc 100644 --- a/lib/screens/lightmeter_pro/components/offering/widget_offering_lightmeter_pro.dart +++ b/lib/screens/lightmeter_pro/components/offering/widget_offering_lightmeter_pro.dart @@ -148,21 +148,18 @@ class _ProductItem extends StatelessWidget { @override Widget build(BuildContext context) { - return DecoratedBox( - decoration: BoxDecoration( + return Material( + color: isSelected + ? Theme.of(context).colorScheme.primaryContainer + : Theme.of(context).colorScheme.surfaceElevated2, + shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(Dimens.borderRadiusM), - - /// TODO: fix color alteration. It is a bit darker here for some reason - /// than reading containers - color: isSelected - ? Theme.of(context).colorScheme.primaryContainer - : Theme.of(context).colorScheme.primaryContainer, - border: isSelected - ? Border.all( + side: isSelected + ? BorderSide( color: Theme.of(context).colorScheme.primary, width: 2, ) - : null, + : BorderSide.none, ), child: GestureDetector( behavior: HitTestBehavior.translucent,