adjusted products color

This commit is contained in:
Vadim 2025-08-03 23:05:45 +02:00
parent 260af158ab
commit e6ca19f6e3

View file

@ -148,21 +148,18 @@ class _ProductItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
return DecoratedBox(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(Dimens.borderRadiusM),
/// TODO: fix color alteration. It is a bit darker here for some reason
/// than reading containers
return Material(
color: isSelected
? Theme.of(context).colorScheme.primaryContainer
: Theme.of(context).colorScheme.primaryContainer,
border: isSelected
? Border.all(
: Theme.of(context).colorScheme.surfaceElevated2,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(Dimens.borderRadiusM),
side: isSelected
? BorderSide(
color: Theme.of(context).colorScheme.primary,
width: 2,
)
: null,
: BorderSide.none,
),
child: GestureDetector(
behavior: HitTestBehavior.translucent,