How to change the drop shadow (or shade) from a ModalBottomSheet in Flutter
1,591
showModalBottomSheet(
barrierColor: Colors.white.withOpacity(0),
...
Note that I am using the property 'barrierColor'
Author by
Joel Broström
Updated on December 15, 2022Comments
-
Joel Broström over 1 year
A ModalBottomSheet automatically renders a shade or shadow over the underling Screen.
Setting background color to transparant in the showModalBottomSheet method only effects the area holding the child widget.
It does not remove the drop shadow under the modal.Can I remove or change the opacity of the shadow?