Overlay

The Overlay widget is used to display a widget on top of another widget. This is useful for creating pop-up menus, tooltips, and other floating elements.

Properties

Property
Description

childAlignment

The alignment of the main child widget.

popupAlignment

The alignment of the popup widget relative to the main child.

offset.xAxis / offset.yAxis

The horizontal and vertical offset of the popup widget.

dismissOnTapOutside

If true, the popup will be dismissed when the user taps outside of it.

dismissOnTapInside

If true, the popup will be dismissed when the user taps inside of it.

Children of Overlay

Slot
Description

childWidget

The main widget that is always visible.

popupWidget

The widget that is displayed as the popup.


Default Properties

The Overlay widget supports the following section of Default Properties:

Layout

  • width

  • height

  • padding

  • margin

  • align

Last updated