Icon
All of the possible values for the icon come from the material design icons.
Examples
value
just represent the id of the material design icons you want to use, check the doc to find one that fit your needs.
Simple icon
{
"type": "icon",
"value": "abc"
}
Icon color & size
You can also change the font color just for your icon, try by changing the integer
code of this icon.
(In this example, the hexadecimal code uses a syntactic sugar from JavaScript but the value sent is still an Integer)
{
"type": "icon",
"value": "abc",
"color": 0xFF000000,
"size": 100
}
Properties
Attribute | Description | Type |
---|---|---|
_type | The type of the element |
|
value | The value of the Icon | IconName |
color | The color of the Icon. If not set or null, the color is inherited from the theme. | integer |
semanticLabel | The semantic label for the Icon. This will be announced when using accessibility mode. | string |
size | The size of the Icon | number
|
style | The style of the Icon | string
|