diff --git a/lib/widgets/overlay_sheet.dart b/lib/widgets/overlay_sheet.dart index 56fc4809..c7c5e2ac 100644 --- a/lib/widgets/overlay_sheet.dart +++ b/lib/widgets/overlay_sheet.dart @@ -463,14 +463,16 @@ class _OverlaySheetHostState extends State with SingleTickerPr widget.child, // Barrier + sheet only when open if (_isOpen) ...[ - AnimatedBuilder( - animation: _barrierAnimation, - builder: (context, child) { - return GestureDetector( - onTap: _barrierDismissible ? () => _close() : null, - child: ColoredBox(color: Colors.black.withValues(alpha: _barrierAnimation.value)), - ); - }, + Positioned.fill( + child: AnimatedBuilder( + animation: _barrierAnimation, + builder: (context, child) { + return GestureDetector( + onTap: _barrierDismissible ? () => _close() : null, + child: ColoredBox(color: Colors.black.withValues(alpha: _barrierAnimation.value)), + ); + }, + ), ), _buildSheet(context), ],