Placeholder
Inherits: LayoutControl
Properties
-
color
(ColorValue
) –The color of the placeholder box.
-
content
(Control | None
) –An optional
Control
to display inside the placeholder. -
fallback_height
(Number
) –The height to use when the placeholder is in a situation with an unbounded height.
-
fallback_width
(Number
) –The width to use when the placeholder is in a situation with an unbounded width.
-
stroke_width
(Number | None
) –The width of the lines in the placeholder box.
Examples#
Basic Example#
import flet as ft
def main(page: ft.Page):
page.add(
ft.Placeholder(
expand=True,
color=ft.Colors.random(),
)
)
ft.run(main)