diff --git a/lib/widgets/overlay_sheet.dart b/lib/widgets/overlay_sheet.dart index 29cf280e..67a6cdf0 100644 --- a/lib/widgets/overlay_sheet.dart +++ b/lib/widgets/overlay_sheet.dart @@ -586,17 +586,25 @@ class _OverlaySheetHostState extends State with SingleTickerPr alignment: _alignment, child: Transform.translate( offset: Offset(0, _dragOffset.clamp(0, double.infinity)), - child: Material( - key: _sheetKey, - color: _explicitBackgroundColor ?? colorScheme.surface, - borderRadius: borderRadius, - clipBehavior: Clip.antiAlias, - child: SafeArea( - top: isTop, - bottom: !isTop, - child: ConstrainedBox( - constraints: effectiveConstraints, - child: sheetContent, + child: SafeArea( + left: true, + right: true, + top: false, + bottom: false, + child: Material( + key: _sheetKey, + color: _explicitBackgroundColor ?? colorScheme.surface, + borderRadius: borderRadius, + clipBehavior: Clip.antiAlias, + child: SafeArea( + top: isTop, + bottom: !isTop, + left: false, + right: false, + child: ConstrainedBox( + constraints: effectiveConstraints, + child: sheetContent, + ), ), ), ), diff --git a/lib/widgets/video_controls/sheets/base_video_control_sheet.dart b/lib/widgets/video_controls/sheets/base_video_control_sheet.dart index 3941d7ae..adf14995 100644 --- a/lib/widgets/video_controls/sheets/base_video_control_sheet.dart +++ b/lib/widgets/video_controls/sheets/base_video_control_sheet.dart @@ -47,8 +47,6 @@ class BaseVideoControlSheet extends StatelessWidget { ); } - return SafeArea( - child: SizedBox(height: MediaQuery.of(context).size.height * 0.75, child: content), - ); + return SizedBox(height: MediaQuery.of(context).size.height * 0.75, child: content); } }