HCenter

Class
A widget that tries to center its child using flex layouting.

Constructors

HCenter(child: Widget, key: Key, constants: object[], modifiers: IReadOnlyCollection<Modifier>)
Creates a widget that tries to center its child using flex layouting.
RemarksYou may use this widget with a collection initializer to specify the child.

Parameters

child:Widget - The child widget to center.
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