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
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue