HThemeProvider

Class
A widget that provides inheritable theme properties to its descendants.

Fields

components: List<ThemeComponent>
properties: Dictionary<ThemeProperty,object>

Constructors

HThemeProvider(components: List<ThemeComponent>, properties: Dictionary<ThemeProperty,object>, child: Widget, key: Key, constants: object[], modifiers: IReadOnlyCollection<Modifier>)
Creates a widget that provides inheritable theme properties to its descendants.

Parameters

components:List<ThemeComponent> - A list of theme components to apply to the descendants.
properties:Dictionary<ThemeProperty,object> - A dictionary of theme properties to apply to the descendants.
child:Widget - The widget that is contained within the theme provider.
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