HFlex

Class
Represents a flexible layout widget that arranges its child widgets along a specified axis with various alignment and wrapping properties.

Fields

axis: Axis
crossAxisAlign: Align
mainAxisAlign: Justify
reverse: bool
wrap: bool
wrapAlign: Nullable<Align>
wrapReverse: bool

Constructors

HFlex(axis: Axis, crossAxisAlign: Align, mainAxisAlign: Justify, wrapAlign: Nullable<Align>, reverse: bool, wrapReverse: bool, wrap: bool, children: IReadOnlyList<Widget>, key: Key, constants: object[], modifiers: IReadOnlyCollection<Modifier>)
Represents a flexible layout widget that arranges its child widgets along a specified axis, with additional alignment, wrapping, and layout options.

Parameters

axis:Axis - The axis along which the child widgets will be arranged.
crossAxisAlign:Align - The alignment along the cross-axis.
mainAxisAlign:Justify - The alignment along the main axis.
wrapAlign:Nullable<Align> - The cross-axis alignment used when wrapping. Defaults to crossAxisAlign.
reverse:bool - Whether to reverse the order of the children.
wrapReverse:bool - Whether to wrap the child widgets in reverse order.
wrap:bool - Whether to enable wrapping.
children:IReadOnlyList<Widget> - The children of this container.
key:Key - Passed on to Widget.key.
constants:object[] - Passed on to Widget.constants.
modifiers:IReadOnlyCollection<Modifier> - Passed on to Widget.modifiers.

Methods

CreateElement(): IWidgetElement
Creates a new IWidgetElement for the given widget configuration.
RemarksUsually, this will create an instance of an IWidgetElement and then call Widget.ReconcileInto to perform the initial reconciliation after that element gets attached to its parent and the panel.
DebugFillProperties(properties: DiagnosticPropertiesBuilder): void

Inherited Members

Extension Methods

ToDiagnosticsNodeSafeIfClipConstDisplayExpandFillFlexibleMarginOpacityPaddingPositionedShrinkSizeStretchTightStretchTightVisibilityWithModifierToBuildableToFactorySpreadDescribeIdentityShortHashToStringNullable

On this page