fix: overlay sheet builder context popping main route

close #779
This commit is contained in:
edde746
2026-03-31 10:30:25 +02:00
parent 1a96d2b418
commit e6ea1b056a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1075,7 +1075,7 @@ class _LibraryManagementSheetState extends State<_LibraryManagementSheet> {
_originalOrder = null;
});
} else {
Navigator.pop(context);
OverlaySheetController.popAdaptive(context);
}
});
if (backResult != KeyEventResult.ignored) {
+1 -1
View File
@@ -512,7 +512,7 @@ class _OverlaySheetHostState extends State<OverlaySheetHost> with SingleTickerPr
final colorScheme = Theme.of(context).colorScheme;
Widget content = _pageStack.isNotEmpty ? _pageStack.last.builder(context) : const SizedBox.shrink();
Widget content = _pageStack.isNotEmpty ? Builder(builder: _pageStack.last.builder) : const SizedBox.shrink();
// Wrap content in NotificationListener for scroll-aware drag-to-dismiss
if (showHandle) {