[SelectionOverlay]Move the debug statement to the scope of the assertion. (#108508)

This commit is contained in:
xubaolin
2022-08-02 12:37:04 +08:00
committed by GitHub
parent 611514886b
commit c4df6b6d09
12 changed files with 48 additions and 21 deletions

View File

@@ -132,7 +132,7 @@ class _OverlayExampleState extends State<OverlayExample> {
);
// Add the OverlayEntry to the Overlay.
Overlay.of(context)!.insert(overlayEntry!);
Overlay.of(context, debugRequiredFor: widget)!.insert(overlayEntry!);
}
// Remove the OverlayEntry.