Function resolve
pub fn resolve<Message, Theme, Renderer>(
axis: Axis,
renderer: &Renderer,
limits: &Limits,
width: Length,
height: Length,
padding: Padding,
spacing: f32,
align_items: Alignment,
children: &mut [Tree],
items: &mut [impl Widget<Message, Theme, Renderer>],
cache: &mut Cache,
) -> Sizewhere
Renderer: Renderer,Available on crate feature
advanced only.Expand description
Computes the flex layout with the given axis and limits, applying spacing, padding and alignment to the items as needed.
The layout is stored in the provided children widget::Trees, and the
resolved size of the container is returned.
The provided Cache holds the per-child bookkeeping of the algorithm;
it is expected to be reused between calls (see Cache).