Skip to main content

LayoutWidgetBuilder

Type Alias LayoutWidgetBuilder 

Source
pub type LayoutWidgetBuilder = Rc<dyn Fn(&mut App, BuildContext, AnyBoxConstraints) -> WidgetRef>;
Expand description

The signature of the LayoutBuilder builder function.

The constraints are the box’s as its parent gave them, a BoxConstraints subclass instance included (AnyBoxConstraints::extension is Dart’s constraints as T).

Aliased Type§

pub struct LayoutWidgetBuilder { /* private fields */ }