HSubstanceBox

Class
A widget that materializes SubstanceLayers.

Fields

Constructors

HSubstanceBox(controller: WidgetStateController, substances: SubstanceLayers, builder: BuildFunction<WidgetState>, boxKey: Key, alignment: WidgetStateProperty<Alignment>, boxModifiers: WidgetStateProperty<ModifierSet>, key: Key, constants: object[], modifiers: IReadOnlyCollection<Modifier>)
Creates a widget that materializes SubstanceLayers.

Parameters

controller:WidgetStateController - The controller used to retrieve the current WidgetState.
substances:SubstanceLayers - The substances to be materialized.
builder:BuildFunction<WidgetState> - A function that builds the child widget based on the current WidgetState.
boxKey:Key - The key to be used by the inner stack.
alignment:WidgetStateProperty<Alignment> - The alignment of the inner stack.
boxModifiers:WidgetStateProperty<ModifierSet> - The modifiers to be applied to the inner stack.
key:Key - Passed on to Widget.key.
constants:object[] - Passed on to Widget.constants.
modifiers:IReadOnlyCollection<Modifier> - Passed on to Widget.modifiers.

Methods

CreateState(): State<HSubstanceBox>

Inherited Members

Extension Methods

ToDiagnosticsNodeSafeIfClipConstDisplayExpandFillFlexibleMarginOpacityPaddingPositionedShrinkSizeStretchTightStretchTightVisibilityWithModifierToBuildableToFactoryDescribeIdentityShortHashToStringNullable

On this page