fix(focus): back over a dialog no longer pops the underlying screen

This commit is contained in:
edde746
2026-06-12 13:19:29 +02:00
parent bd0a0c5d6b
commit 7f1eb3a818
3 changed files with 5 additions and 31 deletions
-6
View File
@@ -379,12 +379,6 @@ class _OverlaySheetHostState extends State<OverlaySheetHost> with SingleTickerPr
_sheetHorizontalAnchor = null;
});
widget.onOpenChanged?.call(false);
// Clear stale back-key flags. handleBackKeyAction sets
// markClosedViaBackKey() expecting a route pop, but the overlay
// doesn't pop a route. Without clearing, the flag leaks into the
// next real route pop and disables KeyUp suppression, causing a
// double-pop on the underlying screen.
BackKeyUpSuppressor.clearSuppression();
});
}