Skip to content

Commit

Permalink
json_dynamic_widget: schema update
Browse files Browse the repository at this point in the history
  • Loading branch information
action committed Feb 21, 2024
1 parent 36e2fef commit 5a511e8
Show file tree
Hide file tree
Showing 8 changed files with 473 additions and 142 deletions.
236 changes: 158 additions & 78 deletions schemas/json_dynamic_widget/animated_container.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,46 +74,86 @@
]
},
"decoration": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "array",
"items": {
"type": "number"
}
},
{
"type": "array",
"items": {
"type": "boolean"
}
},
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/box_decoration.json",
"$comment": "https://api.flutter.dev/flutter/painting/BoxDecoration-class.html",
"type": "object",
"title": "BoxDecoration",
"additionalProperties": false,
"properties": {
"backgroundBlendMode": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/blend_mode.json"
},
"border": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/box_border.json"
}
]
},
"borderRadius": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/border_radius.json"
}
]
},
"boxShadow": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/box_shadow.json"
}
}
]
},
"color": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
"decorationImage": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/decoration_image.json"
}
]
},
"gradient": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/gradient.json"
}
]
},
"image": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/decoration_image.json"
}
]
},
"shape": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/box_shape.json"
}
]
}
},
"duration": {
"anyOf": [
Expand Down Expand Up @@ -158,46 +198,86 @@
]
},
"foregroundDecoration": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "array",
"items": {
"type": "number"
}
},
{
"type": "array",
"items": {
"type": "boolean"
}
},
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/box_decoration.json",
"$comment": "https://api.flutter.dev/flutter/painting/BoxDecoration-class.html",
"type": "object",
"title": "BoxDecoration",
"additionalProperties": false,
"properties": {
"backgroundBlendMode": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/blend_mode.json"
},
"border": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/box_border.json"
}
]
},
"borderRadius": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/border_radius.json"
}
]
},
"boxShadow": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/box_shadow.json"
}
}
]
},
"color": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
"decorationImage": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/decoration_image.json"
}
]
},
"gradient": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/gradient.json"
}
]
},
"image": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/decoration_image.json"
}
]
},
"shape": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/box_shape.json"
}
]
}
},
"height": {
"anyOf": [
Expand Down
42 changes: 42 additions & 0 deletions schemas/json_dynamic_widget/animated_size.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,48 @@
}
]
},
"onEnd": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "array",
"items": {
"type": "number"
}
},
{
"type": "array",
"items": {
"type": "boolean"
}
},
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
]
},
"reverseDuration": {
"anyOf": [
{
Expand Down
Loading

0 comments on commit 5a511e8

Please sign in to comment.