From 4bce668df62bd59694d3448bae7a6b683d1b4376 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Tue, 3 Mar 2026 12:04:03 +0100 Subject: [PATCH] fix: asymmetric divider in track sheet on landscape --- lib/widgets/overlay_sheet.dart | 30 ++++++++++++------- .../sheets/base_video_control_sheet.dart | 4 +-- 2 files changed, 20 insertions(+), 14 deletions(-) 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); } }