Legytma Schemas

Raised Button Schema

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

Created by Windol [email protected] at 13/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 raised_button.schema.json

Raised Button Type

object (Raised Button)

all of

Raised Button Properties

Property Type Required Nullable Defined by
type string Optional cannot be null Raised Button
onLongPress Unknown Type Optional can be null Raised Button
clipBehavior string Optional cannot be null Raised Button
shape Unknown Type Optional can be null Raised Button
focusNode object Optional cannot be null Raised Button
autofocus boolean Optional cannot be null Raised Button
focusColor Merged Optional cannot be null Raised Button
highlightColor Merged Optional cannot be null Raised Button
hoverColor Merged Optional cannot be null Raised Button
textTheme string Optional cannot be null Raised Button
animationDuration Merged Optional cannot be null Raised Button
colorBrightness string Optional cannot be null Raised Button
focusElevation Merged Optional cannot be null Raised Button
highlightElevation Merged Optional cannot be null Raised Button
hoverElevation Merged Optional cannot be null Raised Button
materialTapTargetSize string Optional cannot be null Raised Button
onHighlightChanged Unknown Type Optional can be null Raised Button
color Merged Optional cannot be null Raised Button
disabledColor Merged Optional cannot be null Raised Button
disabledElevation Merged Optional cannot be null Raised Button
disabledTextColor Merged Optional cannot be null Raised Button
elevation Merged Optional cannot be null Raised Button
padding Unknown Type Optional cannot be null Raised Button
splashColor Merged Optional cannot be null Raised Button
textColor Merged Optional cannot be null Raised Button
child object Optional cannot be null Raised Button
onPressed Unknown Type Optional can be null Raised 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:

"RaisedButton"

onLongPress

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

onLongPress

onLongPress Type

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

onLongPress Default Value

The default value is:

"unbounded"

clipBehavior

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

clipBehavior

clipBehavior Type

string (Clip)

clipBehavior Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"antiAlias"  
"none"  
"hardEdge"  
"antiAliasWithSaveLayer"  

clipBehavior Default Value

The default value is:

"none"

shape

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

shape

shape Type

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

shape Default Value

The default value is:

"unbounded"

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

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

textTheme

textTheme

textTheme Type

string (Button Text Theme)

textTheme Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"accent"  
"normal"  
"primary"  

textTheme Default Value

The default value is:

"normal"

textTheme Examples

"accent"
"normal"
"primary"

animationDuration

Define the representation of double acceptable.

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

animationDuration

animationDuration Type

merged type (Double)

one (and only one) of

animationDuration 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

animationDuration Default Value

The default value is:

1

colorBrightness

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

colorBrightness

colorBrightness Type

string (Brightness)

colorBrightness Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"dark"  
"light"  

focusElevation

Define the representation of double acceptable.

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

focusElevation

focusElevation Type

merged type (Double)

one (and only one) of

focusElevation 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

focusElevation Default Value

The default value is:

1

highlightElevation

Define the representation of double acceptable.

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

highlightElevation

highlightElevation Type

merged type (Double)

one (and only one) of

highlightElevation 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

highlightElevation Default Value

The default value is:

1

hoverElevation

Define the representation of double acceptable.

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

hoverElevation

hoverElevation Type

merged type (Double)

one (and only one) of

hoverElevation 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

hoverElevation Default Value

The default value is:

1

materialTapTargetSize

materialTapTargetSize

materialTapTargetSize Type

string (Material Tap Target Size)

materialTapTargetSize Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"padded"  
"shrinkWrap"  

materialTapTargetSize Examples

"padded"
"shrinkWrap"

onHighlightChanged

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

onHighlightChanged

onHighlightChanged Type

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

onHighlightChanged 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

disabledElevation

Define the representation of double acceptable.

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

disabledElevation

disabledElevation Type

merged type (Double)

one (and only one) of

disabledElevation 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

disabledElevation Default Value

The default value is:

1

disabledTextColor

A number in format string or integer

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

disabledTextColor

disabledTextColor Type

merged type (Color)

all of

disabledTextColor Default Value

The default value is:

"0xFF000000"

disabledTextColor Examples

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

elevation

Define the representation of double acceptable.

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

elevation

elevation Type

merged type (Double)

one (and only one) of

elevation 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

elevation Default Value

The default value is:

1

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
}

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

textColor

A number in format string or integer

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

textColor

textColor Type

merged type (Color)

all of

textColor Default Value

The default value is:

"0xFF000000"

textColor Examples

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

child

Schema to validation of JSON used to parse Widget.

You can add all valid properties to complete validation.

child

child 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"