pub trait FlexBuilderExt {
// Required method
fn widget_with_size(self, size: i32, widget: impl WidgetExt) -> Self;
}Expand description
Adds helper function to add a widget to a flex with an already set size
Required Methods§
Sourcefn widget_with_size(self, size: i32, widget: impl WidgetExt) -> Self
fn widget_with_size(self, size: i32, widget: impl WidgetExt) -> Self
Adds a widget and sets its size within the flex layout
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.