fix(ui): renforcer ombre des boutons Parents/AM sur mobile (écran choix)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
678f4219b5
commit
10bf2553e7
@ -55,8 +55,14 @@ class ChoiceCardWidget extends StatelessWidget {
|
|||||||
required bool isMobile,
|
required bool isMobile,
|
||||||
}) {
|
}) {
|
||||||
final Color baseRoseColor = Colors.pink.shade300;
|
final Color baseRoseColor = Colors.pink.shade300;
|
||||||
final Color initialShadow = baseRoseColor.withAlpha(90);
|
final Color initialShadow = isMobile
|
||||||
final Color hoverShadow = baseRoseColor.withAlpha(130);
|
? Colors.black.withOpacity(0.45)
|
||||||
|
: baseRoseColor.withAlpha(90);
|
||||||
|
final Color hoverShadow = isMobile
|
||||||
|
? Colors.black.withOpacity(0.5)
|
||||||
|
: baseRoseColor.withAlpha(130);
|
||||||
|
final double initialElevation = isMobile ? 14.0 : 4.0;
|
||||||
|
final double hoverElevation = isMobile ? 18.0 : 8.0;
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
@ -64,6 +70,8 @@ class ChoiceCardWidget extends StatelessWidget {
|
|||||||
HoverReliefWidget(
|
HoverReliefWidget(
|
||||||
onPressed: onPressed,
|
onPressed: onPressed,
|
||||||
borderRadius: BorderRadius.circular(15.0),
|
borderRadius: BorderRadius.circular(15.0),
|
||||||
|
initialElevation: initialElevation,
|
||||||
|
hoverElevation: hoverElevation,
|
||||||
initialShadowColor: initialShadow,
|
initialShadowColor: initialShadow,
|
||||||
hoverShadowColor: hoverShadow,
|
hoverShadowColor: hoverShadow,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user