HIcon

Class
A wrapper widget around Label that is optimized for displaying font based icons.

Fields

Constructors

HIcon(icon: char, font: FontDefinition, size: Nullable<StyleLength>, color: Nullable<StyleColor>, align: Nullable<TextAnchor>, key: Key, constants: object[], modifiers: IReadOnlyCollection<Modifier>)
Creates a wrapper widget around Label that is optimized for displaying font based icons.

Parameters

icon:char - The Unicode character of the icon.
font:FontDefinition - The font to use for the icon.
size:Nullable<StyleLength> - The font size to use for the icon.
color:Nullable<StyleColor> - The color to use for the icon.
align:Nullable<TextAnchor> - The alignment to use for the icon.
key:Key - Passed on to Widget.key.
constants:object[] - Passed on to Widget.constants.
modifiers:IReadOnlyCollection<Modifier> - Passed on to Widget.modifiers.
HIcon(text: string, font: FontDefinition, size: Nullable<StyleLength>, color: Nullable<StyleColor>, align: Nullable<TextAnchor>, key: Key, constants: object[], modifiers: IReadOnlyCollection<Modifier>)
Creates a wrapper widget around Label that is optimized for displaying font based icons.

Parameters

text:string - The textual content to display.
font:FontDefinition - The font to use for the icon.
size:Nullable<StyleLength> - The font size to use for the icon.
color:Nullable<StyleColor> - The color to use for the icon.
align:Nullable<TextAnchor> - The alignment to use for the icon.
key:Key - Passed on to Widget.key.
constants:object[] - Passed on to Widget.constants.
modifiers:IReadOnlyCollection<Modifier> - Passed on to Widget.modifiers.

Methods

Apply(previous: HIcon, element: Label): void
Create(): Label
DebugFillProperties(properties: DiagnosticPropertiesBuilder): void

Inherited Members

Extension Methods

ToDiagnosticsNodeSafeIfClipConstDisplayExpandFillFlexibleMarginOpacityPaddingPositionedShrinkSizeStretchTightStretchTightVisibilityWithModifierToBuildableToFactoryDescribeIdentityShortHashToStringNullable

On this page