Closed Stef-GMS closed 5 years ago
Never mind. I found this works.
overlayColor: Colors.black12,
@Stef-GMS how is overlayColor
used exactly?
overlayColor is added to the AlertStyle. Below is a code snippet and I'm attaching screenshot examples.
Alert( context: context, type: AlertType.success, style: AlertStyle( animationType: AnimationType.grow, isCloseButton: false, isOverlayTapDismiss: false, overlayColor: Colors.black45, //no number is solid; higher number (ex. black87) more opaque background ),
I love the rflutter_alert package, but would like to have an option to change the background opacity. As you can see from the attached, the black background is covering the contents beneath so much one cannot see it. Having a way to change the opacity would help with this. It would give the developer the ability to change it so that it either blocks or shows the contents beneath.