Skip to main content

AnimatedSwitcherLayoutBuilder

Type Alias AnimatedSwitcherLayoutBuilder 

Source
pub type AnimatedSwitcherLayoutBuilder = Rc<dyn Fn(&mut App, Option<&WidgetRef>, &[WidgetRef]) -> WidgetRef>;
Expand description

Signature for builders used to generate custom layouts for AnimatedSwitcher.

The builder should return a widget which contains the given children, laid out as desired. The builder should be able to handle an empty list of previous_children, or a None current_child.

The previous_children list is sorted with the oldest at the beginning and the newest at the end. It does not include the current_child.

Aliased Typeยง

pub struct AnimatedSwitcherLayoutBuilder { /* private fields */ }