fix: clear stale back-key flags on overlay sheet close

This commit is contained in:
edde746
2026-02-19 00:39:44 +01:00
parent 9e7c66f66a
commit 9bf9a6f23b
+6
View File
@@ -244,6 +244,12 @@ class _OverlaySheetHostState extends State<OverlaySheetHost> with SingleTickerPr
_dragOffset = 0;
_isDragging = 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();
});
}