Skip to content

Commit

Permalink
json_theme: schema update
Browse files Browse the repository at this point in the history
  • Loading branch information
action committed Nov 18, 2023
1 parent 15cc0b3 commit ceb43b1
Show file tree
Hide file tree
Showing 12 changed files with 170 additions and 0 deletions.
22 changes: 22 additions & 0 deletions schemas/json_theme/action_icon_theme_data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/action_icon_theme_data.json",
"$comment": "https://api.flutter.dev/flutter/material/ActionIconThemeData-class.html",
"type": "object",
"title": "ActionIconThemeData",
"additionalProperties": false,
"properties": {
"backButtonIconBuilder": {
"type": "string"
},
"closeButtonIconBuilder": {
"type": "string"
},
"drawerButtonIconBuilder": {
"type": "string"
},
"endDrawerButtonIconBuilder": {
"type": "string"
}
}
}
10 changes: 10 additions & 0 deletions schemas/json_theme/chip_theme_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
"checkmarkColor": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
"color": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/material_state_property_color.json"
}
]
},
"deleteIconColor": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
Expand Down
3 changes: 3 additions & 0 deletions schemas/json_theme/color_scheme.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
"primaryContainer": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
"scrim": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
"secondary": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
Expand Down
23 changes: 23 additions & 0 deletions schemas/json_theme/date_picker_theme_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@
"backgroundColor": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
"cancelButtonStyle": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/button_style.json"
}
]
},
"confirmButtonStyle": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/button_style.json"
}
]
},
"dayBackgroundColor": {
"anyOf": [
{
Expand Down Expand Up @@ -48,6 +68,9 @@
}
]
},
"dividerColor": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
"elevation": {
"anyOf": [
{
Expand Down
10 changes: 10 additions & 0 deletions schemas/json_theme/input_decoration_theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,16 @@
}
]
},
"hintFadeDuration": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"hintStyle": {
"anyOf": [
{
Expand Down
13 changes: 13 additions & 0 deletions schemas/json_theme/popup_menu_theme_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@
}
]
},
"iconColor": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
"iconSize": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"labelTextStyle": {
"anyOf": [
{
Expand Down
3 changes: 3 additions & 0 deletions schemas/json_theme/search_bar_theme_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@
}
]
},
"textCapitalization": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/text_capitalization.json"
},
"textStyle": {
"anyOf": [
{
Expand Down
30 changes: 30 additions & 0 deletions schemas/json_theme/slider_interaction.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/slider_interaction.json",
"$comment": "https://api.flutter.dev/flutter/material/SliderInteraction.html",
"type": "string",
"title": "SliderInteraction",
"oneOf": [
{
"type": "string",
"enum": [
"slideOnly",
"slideThumb",
"tapAndSlide",
"tapOnly"
]
},
{
"type": "string",
"pattern": "^\\{\\{.*\\}\\}$"
},
{
"type": "string",
"pattern": "##.*##$"
},
{
"type": "string",
"pattern": "\\$\\{.*\\}$"
}
]
}
3 changes: 3 additions & 0 deletions schemas/json_theme/slider_theme_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"activeTrackColor": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
"allowedInteraction": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/slider_interaction.json"
},
"disabledActiveTickMarkColor": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
Expand Down
10 changes: 10 additions & 0 deletions schemas/json_theme/switch_theme_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/material_state_property_color.json"
}
]
},
"trackOutlineWidth": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
}
}
}
30 changes: 30 additions & 0 deletions schemas/json_theme/tab_alignment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/tab_alignment.json",
"$comment": "https://api.flutter.dev/flutter/material/TabAlignment.html",
"type": "string",
"title": "TabAlignment",
"oneOf": [
{
"type": "string",
"enum": [
"center",
"fill",
"start",
"startOffset"
]
},
{
"type": "string",
"pattern": "^\\{\\{.*\\}\\}$"
},
{
"type": "string",
"pattern": "##.*##$"
},
{
"type": "string",
"pattern": "\\$\\{.*\\}$"
}
]
}
13 changes: 13 additions & 0 deletions schemas/json_theme/tab_bar_theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
"dividerColor": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
"dividerHeight": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"indicatorColor": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
Expand Down Expand Up @@ -60,6 +70,9 @@
"splashFactory": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/interactive_ink_feature_factory.json"
},
"tabAlignment": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/tab_alignment.json"
},
"unselectedLabelColor": {
"$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json"
},
Expand Down

0 comments on commit ceb43b1

Please sign in to comment.