diff --git a/lib/src/panel.dart b/lib/src/panel.dart index fd3a184..768972b 100644 --- a/lib/src/panel.dart +++ b/lib/src/panel.dart @@ -296,9 +296,9 @@ class _SlidingUpPanelState extends State width: MediaQuery.of(context).size.width, //set color to null so that touch events pass through - //to the body when the panel is closed, otherwise, + //to the body when the panel is closed or hidden, otherwise, //if a color exists, then touch events won't go through - color: _ac.value == 0.0 + color: _ac.value == 0.0 || _isPanelShown==false ? null : widget.backdropColor.withOpacity( widget.backdropOpacity * _ac.value),