HAlign

Class
A widget that aligns its child to the specified alignment.

Fields

alignment: Alignment

Constructors

HAlign(alignment: Alignment, child: Widget, key: Key, constants: object[], modifiers: IReadOnlyCollection<Modifier>)
Creates a widget that aligns its child to the specified alignment.

Parameters

alignment:Alignment - The non-quantized alignment to apply.
child:Widget - The child widget to align.
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.

Inherited Members

Extension Methods

ToDiagnosticsNodeSafeIfClipConstDisplayExpandFillFlexibleMarginOpacityPaddingPositionedShrinkSizeStretchTightStretchTightVisibilityWithModifierToBuildableToFactorySpreadDescribeIdentityShortHashToStringNullable

On this page