fix(web): withOpacity à la place de withValues (Flutter 3.19 / dart2js)
Made-with: Cursor
This commit is contained in:
parent
518b3f84df
commit
4dedd9b87a
@ -309,7 +309,7 @@ class _ValidationFamilyWizardState extends State<ValidationFamilyWizard> {
|
|||||||
|
|
||||||
static List<BoxShadow> _enfantCardShadows() => [
|
static List<BoxShadow> _enfantCardShadows() => [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
color: Colors.black.withValues(alpha: 0.06),
|
color: Colors.black.withOpacity(0.06),
|
||||||
blurRadius: 14,
|
blurRadius: 14,
|
||||||
offset: const Offset(0, 4),
|
offset: const Offset(0, 4),
|
||||||
),
|
),
|
||||||
@ -514,10 +514,10 @@ class _ValidationFamilyWizardState extends State<ValidationFamilyWizard> {
|
|||||||
height: height,
|
height: height,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(photoRadius),
|
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: [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
color: Colors.black.withValues(alpha: 0.05),
|
color: Colors.black.withOpacity(0.05),
|
||||||
blurRadius: 6,
|
blurRadius: 6,
|
||||||
offset: const Offset(0, 2),
|
offset: const Offset(0, 2),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -195,9 +195,9 @@ class _ChildCardWidgetState extends State<ChildCardWidget> {
|
|||||||
? Colors.purple.shade200
|
? Colors.purple.shade200
|
||||||
: (widget.childData.cardColor == CardColorVertical.pink ? Colors.pink.shade200 : Colors.grey.shade200);
|
: (widget.childData.cardColor == CardColorVertical.pink ? Colors.pink.shade200 : Colors.grey.shade200);
|
||||||
final Color initialPhotoShadow =
|
final Color initialPhotoShadow =
|
||||||
Color.alphaBlend(Colors.black.withValues(alpha: 0.22), baseCardColorForShadow);
|
Color.alphaBlend(Colors.black.withOpacity(0.22), baseCardColorForShadow);
|
||||||
final Color hoverPhotoShadow =
|
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 photoSide = 200.0 * (config.isMobile ? 0.8 : 1.0);
|
||||||
final double editableCardWidth = config.isMobile
|
final double editableCardWidth = config.isMobile
|
||||||
@ -722,7 +722,7 @@ class _ChildCardWidgetState extends State<ChildCardWidget> {
|
|||||||
style: OutlinedButton.styleFrom(
|
style: OutlinedButton.styleFrom(
|
||||||
padding: EdgeInsets.symmetric(vertical: padV),
|
padding: EdgeInsets.symmetric(vertical: padV),
|
||||||
visualDensity: VisualDensity.compact,
|
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,
|
foregroundColor: Colors.black87,
|
||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
width: on ? 2 : 1,
|
width: on ? 2 : 1,
|
||||||
|
|||||||
@ -89,7 +89,7 @@ class _CustomAppTextFieldState extends State<CustomAppTextField> {
|
|||||||
final Color labelColor =
|
final Color labelColor =
|
||||||
widget.enabled ? Colors.black87 : Colors.grey;
|
widget.enabled ? Colors.black87 : Colors.grey;
|
||||||
final Color hintColor = widget.enabled
|
final Color hintColor = widget.enabled
|
||||||
? Colors.black54.withValues(alpha: 0.7)
|
? Colors.black54.withOpacity(0.7)
|
||||||
: Colors.grey;
|
: Colors.grey;
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user