Legytma Schemas

Wrap Schema

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

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

Wrap Type

object (Wrap)

all of

Wrap Properties

Property Type Required Nullable Defined by
type string Optional cannot be null Wrap
direction string Optional cannot be null Wrap
alignment string Optional cannot be null Wrap
spacing Merged Optional cannot be null Wrap
runAlignment string Optional cannot be null Wrap
runSpacing Merged Optional cannot be null Wrap
crossAxisAlignment string Optional cannot be null Wrap
textDirection string Optional cannot be null Wrap
verticalDirection string Optional cannot be null Wrap
children array Optional cannot be null Wrap

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:

"Wrap"

direction

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

direction

direction Type

string (Axis)

direction Constraints

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

Value Explanation
"horizontal"  
"vertical"  

direction Default Value

The default value is:

"vertical"

alignment

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

alignment

alignment Type

string (Wrap Alignment)

alignment Constraints

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

Value Explanation
"start"  
"end"  
"center"  
"spaceBetween"  
"spaceAround"  
"spaceEvenly"  

alignment Default Value

The default value is:

"start"

spacing

Define the representation of double acceptable.

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

spacing

spacing Type

merged type (Double)

one (and only one) of

spacing 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

spacing Default Value

The default value is:

1

runAlignment

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

runAlignment

runAlignment Type

string (Wrap Alignment)

runAlignment Constraints

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

Value Explanation
"start"  
"end"  
"center"  
"spaceBetween"  
"spaceAround"  
"spaceEvenly"  

runAlignment Default Value

The default value is:

"start"

runSpacing

Define the representation of double acceptable.

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

runSpacing

runSpacing Type

merged type (Double)

one (and only one) of

runSpacing 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

runSpacing Default Value

The default value is:

1

crossAxisAlignment

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

crossAxisAlignment

crossAxisAlignment Type

string (Wrap Cross Alignment)

crossAxisAlignment Constraints

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

Value Explanation
"start"  
"end"  
"center"  

crossAxisAlignment Default Value

The default value is:

"start"

textDirection

Determine the text direction.

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

textDirection

textDirection Type

string (Text Direction)

textDirection Constraints

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

Value Explanation
"ltr"  
"rtl"  

textDirection Examples

"ltr"
"rtl"

verticalDirection

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

verticalDirection

verticalDirection Type

string (Vertical Direction)

verticalDirection Constraints

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

Value Explanation
"up"  
"down"  

verticalDirection Default Value

The default value is:

"down"

children

List of Schema to validation of JSON used to parse Widgets.

You can add any widget inheritance’s.

children

children Type

object[] (Widget)

children Default Value

The default value is:

[]