Skip to content

Commit

Permalink
Added some documentation for OverlayPortal (#138934)
Browse files Browse the repository at this point in the history
Fixes: #138836 

Adds some comments to OverlayPortal to clarify its behavior.
  • Loading branch information
yiiim authored Nov 28, 2023
1 parent 66935a8 commit f3c84ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/flutter/lib/src/widgets/overlay.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,9 @@ class OverlayPortalController {
/// widget can depend on.
///
/// This widget requires an [Overlay] ancestor in the widget tree when its
/// overlay child is showing.
/// overlay child is showing. The overlay child is rendered by the [Overlay]
/// ancestor, not by the widget itself. This allows the overlay child to float
/// above other widgets, independent of its position in the widget tree.
///
/// When [OverlayPortalController.hide] is called, the widget built using
/// [overlayChildBuilder] will be removed from the widget tree the next time the
Expand Down

0 comments on commit f3c84ce

Please sign in to comment.