Dispose overlay entries (#132826)

This commit is contained in:
Tomasz Gucio
2023-08-25 14:35:49 +02:00
committed by GitHub
parent 901a392ae5
commit 5c17a37b0b
8 changed files with 23 additions and 16 deletions

View File

@@ -138,6 +138,7 @@ class _OverlayExampleState extends State<OverlayExample> {
// Remove the OverlayEntry.
void removeHighlightOverlay() {
overlayEntry?.remove();
overlayEntry?.dispose();
overlayEntry = null;
}