From 4dedd9b87a0e5e7e309e12697e84800162245d00 Mon Sep 17 00:00:00 2001 From: Julien Martin Date: Sun, 12 Apr 2026 21:11:06 +0200 Subject: [PATCH] =?UTF-8?q?fix(web):=20withOpacity=20=C3=A0=20la=20place?= =?UTF-8?q?=20de=20withValues=20(Flutter=203.19=20/=20dart2js)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made-with: Cursor --- frontend/lib/widgets/admin/validation_family_wizard.dart | 6 +++--- frontend/lib/widgets/child_card_widget.dart | 6 +++--- frontend/lib/widgets/custom_app_text_field.dart | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/lib/widgets/admin/validation_family_wizard.dart b/frontend/lib/widgets/admin/validation_family_wizard.dart index 4354ab6..07bff2a 100644 --- a/frontend/lib/widgets/admin/validation_family_wizard.dart +++ b/frontend/lib/widgets/admin/validation_family_wizard.dart @@ -309,7 +309,7 @@ class _ValidationFamilyWizardState extends State { static List _enfantCardShadows() => [ BoxShadow( - color: Colors.black.withValues(alpha: 0.06), + color: Colors.black.withOpacity(0.06), blurRadius: 14, offset: const Offset(0, 4), ), @@ -514,10 +514,10 @@ class _ValidationFamilyWizardState extends State { height: height, decoration: BoxDecoration( borderRadius: BorderRadius.circular(photoRadius), - border: Border.all(color: Colors.black.withValues(alpha: 0.08)), + border: Border.all(color: Colors.black.withOpacity(0.08)), boxShadow: [ BoxShadow( - color: Colors.black.withValues(alpha: 0.05), + color: Colors.black.withOpacity(0.05), blurRadius: 6, offset: const Offset(0, 2), ), diff --git a/frontend/lib/widgets/child_card_widget.dart b/frontend/lib/widgets/child_card_widget.dart index 7d93ecc..afad14e 100644 --- a/frontend/lib/widgets/child_card_widget.dart +++ b/frontend/lib/widgets/child_card_widget.dart @@ -195,9 +195,9 @@ class _ChildCardWidgetState extends State { ? 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 { 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, diff --git a/frontend/lib/widgets/custom_app_text_field.dart b/frontend/lib/widgets/custom_app_text_field.dart index 2db1ab3..dae6364 100644 --- a/frontend/lib/widgets/custom_app_text_field.dart +++ b/frontend/lib/widgets/custom_app_text_field.dart @@ -89,7 +89,7 @@ class _CustomAppTextFieldState extends State { final Color labelColor = widget.enabled ? Colors.black87 : Colors.grey; final Color hintColor = widget.enabled - ? Colors.black54.withValues(alpha: 0.7) + ? Colors.black54.withOpacity(0.7) : Colors.grey; return Column(