Legytma Schemas

Icon Button Schema

https://legytma.com.br/schema/widget/icon_button.schema.json

Created by Windol [email protected] at 07/05/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Access Restrictions Defined In
Can be instantiated No Unknown status No Forbidden Allowed none icon_button.schema.json

Icon Button Type

object (Icon Button)

all of

Icon Button Properties

Property Type Required Nullable Defined by
type string Optional cannot be null Icon Button
icon object Optional cannot be null Icon Button
onPressed Unknown Type Optional can be null Icon Button
padding Unknown Type Optional cannot be null Icon Button
focusNode object Optional cannot be null Icon Button
autofocus boolean Optional cannot be null Icon Button
alignment Unknown Type Optional can be null Icon Button
color Merged Optional cannot be null Icon Button
disabledColor Merged Optional cannot be null Icon Button
enableFeedback boolean Optional cannot be null Icon Button
focusColor Merged Optional cannot be null Icon Button
highlightColor Merged Optional cannot be null Icon Button
hoverColor Merged Optional cannot be null Icon Button
iconSize Merged Optional cannot be null Icon Button
splashColor Merged Optional cannot be null Icon Button
tooltip string Optional cannot be null Icon Button

type

Identify the widget type

Used to identify parser. Every parser can permit only one type

type

type Type

string (Type)

type Constraints

constant: the value of this property must be equal to:

"IconButton"

icon

Schema to validation of JSON used to parse Widget.

You can add all valid properties to complete validation.

icon

icon Type

object (Widget)

onPressed

Created by Windol [email protected] at 15/05/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

onPressed

onPressed Type

any of the folllowing: array or boolean or integer or number or object or string (Dynamic)

onPressed Default Value

The default value is:

"unbounded"

padding

Created by Windol [email protected] at 01/05/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

padding

padding Type

any of the folllowing: string or object (Edge Insets Geometry)

padding Default Value

The default value is:

{
  "type": "only",
  "bottom": 8
}

focusNode

Created by Windol [email protected] at 27/04/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

focusNode

focusNode Type

object (Focus Node)

autofocus

Define the representation of boolean acceptable.

Used to identify parser. Every parser can permit only one type

autofocus

autofocus Type

boolean (Boolean)

autofocus Default Value

The default value is:

true

autofocus Examples

true
false

alignment

Created by Windol [email protected] at 15/05/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

alignment

alignment Type

any of the folllowing: array or boolean or integer or number or object or string (Dynamic)

alignment Default Value

The default value is:

"unbounded"

color

A number in format string or integer

Used to identify parser. Every parser can permit only one type

color

color Type

merged type (Color)

all of

color Default Value

The default value is:

"0xFF000000"

color Examples

"#FFFFFFFF"
"0xFFFFFFFF"
"4294967295"
4294967295

disabledColor

A number in format string or integer

Used to identify parser. Every parser can permit only one type

disabledColor

disabledColor Type

merged type (Color)

all of

disabledColor Default Value

The default value is:

"0xFF000000"

disabledColor Examples

"#FFFFFFFF"
"0xFFFFFFFF"
"4294967295"
4294967295

enableFeedback

Define the representation of boolean acceptable.

Used to identify parser. Every parser can permit only one type

enableFeedback

enableFeedback Type

boolean (Boolean)

enableFeedback Default Value

The default value is:

true

enableFeedback Examples

true
false

focusColor

A number in format string or integer

Used to identify parser. Every parser can permit only one type

focusColor

focusColor Type

merged type (Color)

all of

focusColor Default Value

The default value is:

"0xFF000000"

focusColor Examples

"#FFFFFFFF"
"0xFFFFFFFF"
"4294967295"
4294967295

highlightColor

A number in format string or integer

Used to identify parser. Every parser can permit only one type

highlightColor

highlightColor Type

merged type (Color)

all of

highlightColor Default Value

The default value is:

"0xFF000000"

highlightColor Examples

"#FFFFFFFF"
"0xFFFFFFFF"
"4294967295"
4294967295

hoverColor

A number in format string or integer

Used to identify parser. Every parser can permit only one type

hoverColor

hoverColor Type

merged type (Color)

all of

hoverColor Default Value

The default value is:

"0xFF000000"

hoverColor Examples

"#FFFFFFFF"
"0xFFFFFFFF"
"4294967295"
4294967295

iconSize

Define the representation of double acceptable.

Used to identify parser. Every parser can permit only one type

iconSize

iconSize Type

merged type (Double)

one (and only one) of

iconSize Constraints

maximum: the value of this number must smaller than or equal to: 1

minimum: the value of this number must greater than or equal to: 0

iconSize Default Value

The default value is:

1

splashColor

A number in format string or integer

Used to identify parser. Every parser can permit only one type

splashColor

splashColor Type

merged type (Color)

all of

splashColor Default Value

The default value is:

"0xFF000000"

splashColor Examples

"#FFFFFFFF"
"0xFFFFFFFF"
"4294967295"
4294967295

tooltip

tooltip

tooltip Type

string (Tooltip)