pub fn responsive<'a, Message, Theme, Renderer>(
f: impl Fn(Size) -> Element<'a, Message, Theme, Renderer> + 'a,
) -> Responsive<'a, Message, Theme, Renderer>where
Renderer: Renderer,
Expand description
Creates a new Responsive
widget with a closure that produces its
contents.
The view
closure will receive the maximum available space for
the Responsive
during layout. You can use this Size
to
conditionally build the contents.