Legytma Schemas

Container Schema

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

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

Container Type

object (Container)

all of

Container Properties

Property Type Required Nullable Defined by
type string Optional cannot be null Container
alignment Unknown Type Optional can be null Container
padding Unknown Type Optional cannot be null Container
color Merged Optional cannot be null Container
margin Unknown Type Optional cannot be null Container
width Merged Optional cannot be null Container
height Merged Optional cannot be null Container
constraints object Optional cannot be null Container
child object Optional cannot be null Container
decoration object Optional cannot be null Container
foregroundDecoration object Optional cannot be null Container
transform Unknown Type Optional can be null Container

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:

"Container"

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)

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
}

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

margin

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

margin

margin Type

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

margin Default Value

The default value is:

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

width

Define the representation of double acceptable.

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

width

width Type

merged type (Double)

one (and only one) of

width 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

width Default Value

The default value is:

1

height

Define the representation of double acceptable.

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

height

height Type

merged type (Double)

one (and only one) of

height 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

height Default Value

The default value is:

1

constraints

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

constraints

constraints Type

object (Box Constraints)

child

Schema to validation of JSON used to parse Widget.

You can add all valid properties to complete validation.

child

child Type

object (Widget)

decoration

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

decoration

decoration Type

object (Decoration)

foregroundDecoration

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

foregroundDecoration

foregroundDecoration Type

object (Decoration)

transform

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

transform

transform Type

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