fix(web): withOpacity à la place de withValues (Flutter 3.19 / dart2js)
Made-with: Cursor
This commit is contained in:
@@ -195,9 +195,9 @@ class _ChildCardWidgetState extends State<ChildCardWidget> {
|
||||
? Colors.purple.shade200
|
||||
: (widget.childData.cardColor == CardColorVertical.pink ? Colors.pink.shade200 : Colors.grey.shade200);
|
||||
final Color initialPhotoShadow =
|
||||
Color.alphaBlend(Colors.black.withValues(alpha: 0.22), baseCardColorForShadow);
|
||||
Color.alphaBlend(Colors.black.withOpacity(0.22), baseCardColorForShadow);
|
||||
final Color hoverPhotoShadow =
|
||||
Color.alphaBlend(Colors.black.withValues(alpha: 0.32), baseCardColorForShadow);
|
||||
Color.alphaBlend(Colors.black.withOpacity(0.32), baseCardColorForShadow);
|
||||
|
||||
final double photoSide = 200.0 * (config.isMobile ? 0.8 : 1.0);
|
||||
final double editableCardWidth = config.isMobile
|
||||
@@ -722,7 +722,7 @@ class _ChildCardWidgetState extends State<ChildCardWidget> {
|
||||
style: OutlinedButton.styleFrom(
|
||||
padding: EdgeInsets.symmetric(vertical: padV),
|
||||
visualDensity: VisualDensity.compact,
|
||||
backgroundColor: on ? Colors.black.withValues(alpha: 0.08) : Colors.transparent,
|
||||
backgroundColor: on ? Colors.black.withOpacity(0.08) : Colors.transparent,
|
||||
foregroundColor: Colors.black87,
|
||||
side: BorderSide(
|
||||
width: on ? 2 : 1,
|
||||
|
||||
Reference in New Issue
Block a user