Skip to main content

Icon

The Stac Icon allows you to build a Flutter icon widget using JSON. To know more about the icon widget in Flutter, refer to the official documentation.

Properties​

PropertyTypeDescription
iconStringThe name of the icon to display.
iconTypeIconTypeThe type of the icon (material, cupertino). Defaults to material.
sizedouble?The size of the icon.
colorString?The color of the icon.
semanticLabelString?The semantic label for the icon.
textDirectionTextDirection?The text direction for the icon.

Note: To check the available icons, refer to Icon utils.

Example JSON​

{
"type": "icon",
"icon": "home",
"size": 24.0,
"color": "#000000",
"semanticLabel": "Home Icon",
"textDirection": "ltr"
}