mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-08-26 15:06:43 +00:00
adjusted products color
This commit is contained in:
parent
260af158ab
commit
e6ca19f6e3
1 changed files with 8 additions and 11 deletions
|
@ -148,21 +148,18 @@ class _ProductItem extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return DecoratedBox(
|
return Material(
|
||||||
decoration: BoxDecoration(
|
color: isSelected
|
||||||
|
? Theme.of(context).colorScheme.primaryContainer
|
||||||
|
: Theme.of(context).colorScheme.surfaceElevated2,
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(Dimens.borderRadiusM),
|
borderRadius: BorderRadius.circular(Dimens.borderRadiusM),
|
||||||
|
side: isSelected
|
||||||
/// TODO: fix color alteration. It is a bit darker here for some reason
|
? BorderSide(
|
||||||
/// than reading containers
|
|
||||||
color: isSelected
|
|
||||||
? Theme.of(context).colorScheme.primaryContainer
|
|
||||||
: Theme.of(context).colorScheme.primaryContainer,
|
|
||||||
border: isSelected
|
|
||||||
? Border.all(
|
|
||||||
color: Theme.of(context).colorScheme.primary,
|
color: Theme.of(context).colorScheme.primary,
|
||||||
width: 2,
|
width: 2,
|
||||||
)
|
)
|
||||||
: null,
|
: BorderSide.none,
|
||||||
),
|
),
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
behavior: HitTestBehavior.translucent,
|
behavior: HitTestBehavior.translucent,
|
||||||
|
|
Loading…
Reference in a new issue