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,
Available on crate feature
lazy
only.Expand description
Creates a new Responsive
widget with a closure that produces its
contents.
The view
closure will be provided with the current Size
of
the Responsive
widget and, therefore, can be used to build the
contents of the widget in a responsive way.