From ceb43b1ad8f8fcbdd8b7ea7718226912aa2fc216 Mon Sep 17 00:00:00 2001 From: action Date: Sat, 18 Nov 2023 00:10:22 +0000 Subject: [PATCH] json_theme: schema update --- .../json_theme/action_icon_theme_data.json | 22 ++++++++++++++ schemas/json_theme/chip_theme_data.json | 10 +++++++ schemas/json_theme/color_scheme.json | 3 ++ .../json_theme/date_picker_theme_data.json | 23 ++++++++++++++ .../json_theme/input_decoration_theme.json | 10 +++++++ schemas/json_theme/popup_menu_theme_data.json | 13 ++++++++ schemas/json_theme/search_bar_theme_data.json | 3 ++ schemas/json_theme/slider_interaction.json | 30 +++++++++++++++++++ schemas/json_theme/slider_theme_data.json | 3 ++ schemas/json_theme/switch_theme_data.json | 10 +++++++ schemas/json_theme/tab_alignment.json | 30 +++++++++++++++++++ schemas/json_theme/tab_bar_theme.json | 13 ++++++++ 12 files changed, 170 insertions(+) create mode 100644 schemas/json_theme/action_icon_theme_data.json create mode 100644 schemas/json_theme/slider_interaction.json create mode 100644 schemas/json_theme/tab_alignment.json diff --git a/schemas/json_theme/action_icon_theme_data.json b/schemas/json_theme/action_icon_theme_data.json new file mode 100644 index 0000000..00b1b1c --- /dev/null +++ b/schemas/json_theme/action_icon_theme_data.json @@ -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" + } + } +} \ No newline at end of file diff --git a/schemas/json_theme/chip_theme_data.json b/schemas/json_theme/chip_theme_data.json index 3f4d985..177ef31 100644 --- a/schemas/json_theme/chip_theme_data.json +++ b/schemas/json_theme/chip_theme_data.json @@ -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" }, diff --git a/schemas/json_theme/color_scheme.json b/schemas/json_theme/color_scheme.json index 7a56c6f..10baf64 100644 --- a/schemas/json_theme/color_scheme.json +++ b/schemas/json_theme/color_scheme.json @@ -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" }, diff --git a/schemas/json_theme/date_picker_theme_data.json b/schemas/json_theme/date_picker_theme_data.json index 39fc31e..e6019dd 100644 --- a/schemas/json_theme/date_picker_theme_data.json +++ b/schemas/json_theme/date_picker_theme_data.json @@ -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": [ { @@ -48,6 +68,9 @@ } ] }, + "dividerColor": { + "$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/color.json" + }, "elevation": { "anyOf": [ { diff --git a/schemas/json_theme/input_decoration_theme.json b/schemas/json_theme/input_decoration_theme.json index dc8d7d7..ca2b3ec 100644 --- a/schemas/json_theme/input_decoration_theme.json +++ b/schemas/json_theme/input_decoration_theme.json @@ -183,6 +183,16 @@ } ] }, + "hintFadeDuration": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] + }, "hintStyle": { "anyOf": [ { diff --git a/schemas/json_theme/popup_menu_theme_data.json b/schemas/json_theme/popup_menu_theme_data.json index 5e514d6..3c847bf 100644 --- a/schemas/json_theme/popup_menu_theme_data.json +++ b/schemas/json_theme/popup_menu_theme_data.json @@ -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": [ { diff --git a/schemas/json_theme/search_bar_theme_data.json b/schemas/json_theme/search_bar_theme_data.json index c9ee0d6..e306298 100644 --- a/schemas/json_theme/search_bar_theme_data.json +++ b/schemas/json_theme/search_bar_theme_data.json @@ -105,6 +105,9 @@ } ] }, + "textCapitalization": { + "$ref": "https://peiffer-innovations.github.io/flutter_json_schemas/schemas/json_theme/text_capitalization.json" + }, "textStyle": { "anyOf": [ { diff --git a/schemas/json_theme/slider_interaction.json b/schemas/json_theme/slider_interaction.json new file mode 100644 index 0000000..1255fd3 --- /dev/null +++ b/schemas/json_theme/slider_interaction.json @@ -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": "\\$\\{.*\\}$" + } + ] +} \ No newline at end of file diff --git a/schemas/json_theme/slider_theme_data.json b/schemas/json_theme/slider_theme_data.json index 8ff1930..1151142 100644 --- a/schemas/json_theme/slider_theme_data.json +++ b/schemas/json_theme/slider_theme_data.json @@ -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" }, diff --git a/schemas/json_theme/switch_theme_data.json b/schemas/json_theme/switch_theme_data.json index 519acc9..f0e8103 100644 --- a/schemas/json_theme/switch_theme_data.json +++ b/schemas/json_theme/switch_theme_data.json @@ -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" + } + ] } } } \ No newline at end of file diff --git a/schemas/json_theme/tab_alignment.json b/schemas/json_theme/tab_alignment.json new file mode 100644 index 0000000..831c5d5 --- /dev/null +++ b/schemas/json_theme/tab_alignment.json @@ -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": "\\$\\{.*\\}$" + } + ] +} \ No newline at end of file diff --git a/schemas/json_theme/tab_bar_theme.json b/schemas/json_theme/tab_bar_theme.json index df02345..33cded0 100644 --- a/schemas/json_theme/tab_bar_theme.json +++ b/schemas/json_theme/tab_bar_theme.json @@ -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" }, @@ -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" },