Skip to content

Commit

Permalink
Avoid null assertion on barrierColor
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedLSayed9 committed Mar 9, 2024
1 parent b28b830 commit df66953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dropdown_button2/lib/src/dropdown_route.dart
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ class _CustomModalBarrierState extends State<_CustomModalBarrier> {
super.initState();
color = widget.animation!.drive(
ColorTween(
begin: widget.barrierColor!.withOpacity(0.0),
begin: widget.barrierColor?.withOpacity(0.0),
end: widget.barrierColor,
).chain(CurveTween(curve: widget.barrierCurve)),
);
Expand Down

0 comments on commit df66953

Please sign in to comment.