Skip to main content

with_sheet

Function with_sheet 

Source
pub fn with_sheet<E: Serialize>(
    widget: Widget,
    title: impl Into<String>,
    child: Widget,
    on_dismiss: E,
) -> Widget
Expand description

Open a modal bottom sheet over a scaffold’s body. No-op on any other widget — drive it from the model: with_sheet(scaffold(...), title, sheet_body, Msg::CloseSheet).