We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e12675 + c40707f commit aec7a04Copy full SHA for aec7a04
packages/dropdown_button2/lib/src/dropdown_route.dart
@@ -483,7 +483,10 @@ class _CustomModalBarrierState extends State<_CustomModalBarrier> {
483
super.initState();
484
color = widget.animation!.drive(
485
ColorTween(
486
- begin: widget.barrierColor?.withValues(alpha: 0.0),
+ // TODO(Ahmed): Use `.withValues(alpha: 0.0)`
487
+ // when it's supported by the min version of the package [Flutter>=3.27.0]
488
+ // ignore: deprecated_member_use
489
+ begin: widget.barrierColor?.withOpacity(0.0),
490
end: widget.barrierColor,
491
).chain(CurveTween(curve: widget.barrierCurve)),
492
);
0 commit comments