fix: asymmetric divider in track sheet on landscape

This commit is contained in:
edde746
2026-03-03 12:04:03 +01:00
parent c64c7defc3
commit 4bce668df6
2 changed files with 20 additions and 14 deletions
+19 -11
View File
@@ -586,17 +586,25 @@ class _OverlaySheetHostState extends State<OverlaySheetHost> 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,
),
),
),
),