HStack

Class
Represents a container that tries to arrange its children above each other using absolute positioning.

Fields

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

Constructors

HStack(axis: Axis, crossAxisAlign: Align, mainAxisAlign: Justify, wrapAlign: Nullable<Align>, reverse: bool, wrapReverse: bool, wrap: bool, key: Key, constants: object[], children: IReadOnlyList<Widget>, modifiers: IReadOnlyCollection<Modifier>)
Creates a container that tries to arrange its children above each other using absolute positioning. If the children do not use absolute positioning, behavior will be similar to HFlex.

Parameters

axis:Axis - The axis along which non-stacking children 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 non-stacking children. Defaults to crossAxisAlign.
reverse:bool - Whether to reverse the order of the children.
wrapReverse:bool - Whether to wrap non-stacking children in reverse order.
wrap:bool - Whether to enable wrapping for non-stacking children.
key:Key - Passed on to Widget.key.
constants:object[] - Passed on to Widget.constants.
children:IReadOnlyList<Widget> - The children of this container.
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