pub fn Sheet(_: SheetProps) -> ElementExpand description
A temporary surface that slides in from an edge, holding whatever its children are.
It is a Dialog in every way that crosses the boundary: open seeds the Renderer’s own
open state and carries a change that came from elsewhere, and on_dismiss says once
that the user asked to close it. The drag itself does not cross: while the sheet is
being pulled about, Rust hears nothing, and only a drag that ends in a dismissal is
reported, once.
Which edge it comes from is the Renderer’s decision, made from the width it measured: up from the bottom in a narrow window, in from the side in a wide one. There is no property that could ask for one of them, for the same reason there is none that can ask a date picker for a wheel.
§Props
For details, see the props struct definition.
weight:Option<f32>width:Option<f32>height:Option<f32>padding:Option<f32>padding_role:Option<SpaceRole>background:Option<Paint>shape_role:Option<ShapeRole>corner_radius:Option<f32>border_width:Option<f32>border_color:Option<Paint>elevation:Option<f32>fill_max_width:boolfill_max_height:boolopen:boolon_dismiss:EventHandler<()>children:Element