diff --git a/packages/stac/lib/src/action_parsers/action_parsers.dart b/packages/stac/lib/src/action_parsers/action_parsers.dart deleted file mode 100644 index 5d10cbcc..00000000 --- a/packages/stac/lib/src/action_parsers/action_parsers.dart +++ /dev/null @@ -1,8 +0,0 @@ -export 'package:stac/src/action_parsers/stac_dialog_action/stac_dialog_action.dart'; -export 'package:stac/src/action_parsers/stac_form_validate/stac_form_validate.dart'; -export 'package:stac/src/action_parsers/stac_get_form_value/stac_get_form_value.dart'; -export 'package:stac/src/action_parsers/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action_parser.dart'; -export 'package:stac/src/action_parsers/stac_navigate_action/stac_navigate_action_parser.dart'; -export 'package:stac/src/action_parsers/stac_network_request/stac_network_request.dart'; -export 'package:stac/src/action_parsers/stac_none_action/stac_none_action_parser.dart'; -export 'package:stac/src/action_parsers/stac_snack_bar/stac_snack_bar.dart'; diff --git a/packages/stac/lib/src/framework/stac.dart b/packages/stac/lib/src/framework/stac.dart index 0933bd49..9246320c 100644 --- a/packages/stac/lib/src/framework/stac.dart +++ b/packages/stac/lib/src/framework/stac.dart @@ -4,13 +4,9 @@ import 'dart:convert'; import 'package:dio/dio.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:stac/src/action_parsers/action_parsers.dart'; -import 'package:stac/src/action_parsers/stac_network_request/stac_network_request_parser.dart'; import 'package:stac/src/framework/stac_registry.dart'; +import 'package:stac/src/parsers/actions/stac_network_request/stac_network_request_parser.dart'; import 'package:stac/src/parsers/parsers.dart'; -import 'package:stac/src/parsers/stac_custom_scroll_view/stac_custom_scroll_view_parser.dart'; -import 'package:stac/src/parsers/stac_dropdown_menu/stac_dropdown_menu_parser.dart'; -import 'package:stac/src/parsers/stac_sliver_app_bar/stac_sliver_app_bar_parser.dart'; import 'package:stac/src/services/stac_network_service.dart'; import 'package:stac/src/utils/log.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/framework/stac_app.dart b/packages/stac/lib/src/framework/stac_app.dart index 82236f90..e31d545c 100644 --- a/packages/stac/lib/src/framework/stac_app.dart +++ b/packages/stac/lib/src/framework/stac_app.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:stac/src/parsers/stac_theme/stac_theme.dart'; +import 'package:stac/src/parsers/theme/stac_theme/stac_theme.dart'; class StacApp extends StatelessWidget { const StacApp({ diff --git a/packages/stac/lib/src/parsers/actions/actions.dart b/packages/stac/lib/src/parsers/actions/actions.dart new file mode 100644 index 00000000..79c628a5 --- /dev/null +++ b/packages/stac/lib/src/parsers/actions/actions.dart @@ -0,0 +1,8 @@ +export 'package:stac/src/parsers/actions/stac_dialog_action/stac_dialog_action.dart'; +export 'package:stac/src/parsers/actions/stac_form_validate/stac_form_validate.dart'; +export 'package:stac/src/parsers/actions/stac_get_form_value/stac_get_form_value.dart'; +export 'package:stac/src/parsers/actions/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action_parser.dart'; +export 'package:stac/src/parsers/actions/stac_navigate_action/stac_navigate_action_parser.dart'; +export 'package:stac/src/parsers/actions/stac_network_request/stac_network_request.dart'; +export 'package:stac/src/parsers/actions/stac_none_action/stac_none_action_parser.dart'; +export 'package:stac/src/parsers/actions/stac_snack_bar/stac_snack_bar.dart'; diff --git a/packages/stac/lib/src/action_parsers/stac_dialog_action/stac_dialog_action.dart b/packages/stac/lib/src/parsers/actions/stac_dialog_action/stac_dialog_action.dart similarity index 89% rename from packages/stac/lib/src/action_parsers/stac_dialog_action/stac_dialog_action.dart rename to packages/stac/lib/src/parsers/actions/stac_dialog_action/stac_dialog_action.dart index 30d8ae8b..7dd0475e 100644 --- a/packages/stac/lib/src/action_parsers/stac_dialog_action/stac_dialog_action.dart +++ b/packages/stac/lib/src/parsers/actions/stac_dialog_action/stac_dialog_action.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/action_parsers/stac_network_request/stac_network_request.dart'; +import 'package:stac/src/parsers/actions/stac_network_request/stac_network_request.dart'; export 'stac_dialog_action_parser.dart'; diff --git a/packages/stac/lib/src/action_parsers/stac_dialog_action/stac_dialog_action.freezed.dart b/packages/stac/lib/src/parsers/actions/stac_dialog_action/stac_dialog_action.freezed.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_dialog_action/stac_dialog_action.freezed.dart rename to packages/stac/lib/src/parsers/actions/stac_dialog_action/stac_dialog_action.freezed.dart diff --git a/packages/stac/lib/src/action_parsers/stac_dialog_action/stac_dialog_action.g.dart b/packages/stac/lib/src/parsers/actions/stac_dialog_action/stac_dialog_action.g.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_dialog_action/stac_dialog_action.g.dart rename to packages/stac/lib/src/parsers/actions/stac_dialog_action/stac_dialog_action.g.dart diff --git a/packages/stac/lib/src/action_parsers/stac_dialog_action/stac_dialog_action_parser.dart b/packages/stac/lib/src/parsers/actions/stac_dialog_action/stac_dialog_action_parser.dart similarity index 94% rename from packages/stac/lib/src/action_parsers/stac_dialog_action/stac_dialog_action_parser.dart rename to packages/stac/lib/src/parsers/actions/stac_dialog_action/stac_dialog_action_parser.dart index 42efffaa..49baef6a 100644 --- a/packages/stac/lib/src/action_parsers/stac_dialog_action/stac_dialog_action_parser.dart +++ b/packages/stac/lib/src/parsers/actions/stac_dialog_action/stac_dialog_action_parser.dart @@ -1,7 +1,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; -import 'package:stac/src/action_parsers/stac_dialog_action/stac_dialog_action.dart'; +import 'package:stac/src/parsers/actions/stac_dialog_action/stac_dialog_action.dart'; import 'package:stac/src/framework/framework.dart'; import 'package:stac/src/utils/action_type.dart'; import 'package:stac/src/utils/color_utils.dart'; diff --git a/packages/stac/lib/src/action_parsers/stac_form_validate/stac_form_validate.dart b/packages/stac/lib/src/parsers/actions/stac_form_validate/stac_form_validate.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_form_validate/stac_form_validate.dart rename to packages/stac/lib/src/parsers/actions/stac_form_validate/stac_form_validate.dart diff --git a/packages/stac/lib/src/action_parsers/stac_form_validate/stac_form_validate.freezed.dart b/packages/stac/lib/src/parsers/actions/stac_form_validate/stac_form_validate.freezed.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_form_validate/stac_form_validate.freezed.dart rename to packages/stac/lib/src/parsers/actions/stac_form_validate/stac_form_validate.freezed.dart diff --git a/packages/stac/lib/src/action_parsers/stac_form_validate/stac_form_validate.g.dart b/packages/stac/lib/src/parsers/actions/stac_form_validate/stac_form_validate.g.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_form_validate/stac_form_validate.g.dart rename to packages/stac/lib/src/parsers/actions/stac_form_validate/stac_form_validate.g.dart diff --git a/packages/stac/lib/src/action_parsers/stac_form_validate/stac_form_validate_parser.dart b/packages/stac/lib/src/parsers/actions/stac_form_validate/stac_form_validate_parser.dart similarity index 77% rename from packages/stac/lib/src/action_parsers/stac_form_validate/stac_form_validate_parser.dart rename to packages/stac/lib/src/parsers/actions/stac_form_validate/stac_form_validate_parser.dart index f6c8716a..ca75b875 100644 --- a/packages/stac/lib/src/action_parsers/stac_form_validate/stac_form_validate_parser.dart +++ b/packages/stac/lib/src/parsers/actions/stac_form_validate/stac_form_validate_parser.dart @@ -1,9 +1,12 @@ import 'dart:async'; import 'package:flutter/material.dart'; -import 'package:stac/src/parsers/stac_form/stac_form_scope.dart'; +import 'package:stac/src/framework/framework.dart'; +import 'package:stac/src/parsers/widgets/stac_form/stac_form_scope.dart'; import 'package:stac/src/utils/action_type.dart'; -import 'package:stac/stac.dart'; +import 'package:stac_framework/stac_framework.dart'; + +import 'stac_form_validate.dart'; class StacFormValidateParser extends StacActionParser { const StacFormValidateParser(); diff --git a/packages/stac/lib/src/action_parsers/stac_get_form_value/stac_get_form_value.dart b/packages/stac/lib/src/parsers/actions/stac_get_form_value/stac_get_form_value.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_get_form_value/stac_get_form_value.dart rename to packages/stac/lib/src/parsers/actions/stac_get_form_value/stac_get_form_value.dart diff --git a/packages/stac/lib/src/action_parsers/stac_get_form_value/stac_get_form_value.freezed.dart b/packages/stac/lib/src/parsers/actions/stac_get_form_value/stac_get_form_value.freezed.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_get_form_value/stac_get_form_value.freezed.dart rename to packages/stac/lib/src/parsers/actions/stac_get_form_value/stac_get_form_value.freezed.dart diff --git a/packages/stac/lib/src/action_parsers/stac_get_form_value/stac_get_form_value.g.dart b/packages/stac/lib/src/parsers/actions/stac_get_form_value/stac_get_form_value.g.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_get_form_value/stac_get_form_value.g.dart rename to packages/stac/lib/src/parsers/actions/stac_get_form_value/stac_get_form_value.g.dart diff --git a/packages/stac/lib/src/action_parsers/stac_get_form_value/stac_get_form_value_parser.dart b/packages/stac/lib/src/parsers/actions/stac_get_form_value/stac_get_form_value_parser.dart similarity index 78% rename from packages/stac/lib/src/action_parsers/stac_get_form_value/stac_get_form_value_parser.dart rename to packages/stac/lib/src/parsers/actions/stac_get_form_value/stac_get_form_value_parser.dart index 9e271e03..182fe2a8 100644 --- a/packages/stac/lib/src/action_parsers/stac_get_form_value/stac_get_form_value_parser.dart +++ b/packages/stac/lib/src/parsers/actions/stac_get_form_value/stac_get_form_value_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:stac/src/action_parsers/stac_get_form_value/stac_get_form_value.dart'; -import 'package:stac/src/parsers/stac_form/stac_form_scope.dart'; +import 'package:stac/src/parsers/actions/stac_get_form_value/stac_get_form_value.dart'; +import 'package:stac/src/parsers/widgets/stac_form/stac_form_scope.dart'; import 'package:stac/src/utils/action_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/action_parsers/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.dart b/packages/stac/lib/src/parsers/actions/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.dart similarity index 78% rename from packages/stac/lib/src/action_parsers/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.dart rename to packages/stac/lib/src/parsers/actions/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.dart index d6cb5470..fdce7202 100644 --- a/packages/stac/lib/src/action_parsers/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.dart +++ b/packages/stac/lib/src/parsers/actions/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.dart @@ -1,7 +1,7 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/action_parsers/stac_network_request/stac_network_request.dart'; -import 'package:stac/src/parsers/stac_border/stac_border.dart'; -import 'package:stac/src/parsers/stac_box_constraints/stac_box_constraints.dart'; +import 'package:stac/src/parsers/actions/stac_network_request/stac_network_request.dart'; +import 'package:stac/src/parsers/widgets/stac_border/stac_border.dart'; +import 'package:stac/src/parsers/widgets/stac_box_constraints/stac_box_constraints.dart'; part 'stac_modal_bottom_sheet_action.freezed.dart'; part 'stac_modal_bottom_sheet_action.g.dart'; diff --git a/packages/stac/lib/src/action_parsers/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.freezed.dart b/packages/stac/lib/src/parsers/actions/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.freezed.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.freezed.dart rename to packages/stac/lib/src/parsers/actions/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.freezed.dart diff --git a/packages/stac/lib/src/action_parsers/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.g.dart b/packages/stac/lib/src/parsers/actions/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.g.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.g.dart rename to packages/stac/lib/src/parsers/actions/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.g.dart diff --git a/packages/stac/lib/src/action_parsers/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action_parser.dart b/packages/stac/lib/src/parsers/actions/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action_parser.dart similarity index 88% rename from packages/stac/lib/src/action_parsers/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action_parser.dart rename to packages/stac/lib/src/parsers/actions/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action_parser.dart index 64f8581b..9c335403 100644 --- a/packages/stac/lib/src/action_parsers/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action_parser.dart +++ b/packages/stac/lib/src/parsers/actions/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action_parser.dart @@ -1,10 +1,10 @@ import 'dart:async'; import 'package:flutter/material.dart'; -import 'package:stac/src/action_parsers/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.dart'; +import 'package:stac/src/parsers/actions/stac_modal_bottom_sheet_action/stac_modal_bottom_sheet_action.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_border/stac_border.dart'; -import 'package:stac/src/parsers/stac_box_constraints/stac_box_constraints.dart'; +import 'package:stac/src/parsers/widgets/stac_border/stac_border.dart'; +import 'package:stac/src/parsers/widgets/stac_box_constraints/stac_box_constraints.dart'; import 'package:stac/src/utils/action_type.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/action_parsers/stac_navigate_action/stac_navigate_action.dart b/packages/stac/lib/src/parsers/actions/stac_navigate_action/stac_navigate_action.dart similarity index 89% rename from packages/stac/lib/src/action_parsers/stac_navigate_action/stac_navigate_action.dart rename to packages/stac/lib/src/parsers/actions/stac_navigate_action/stac_navigate_action.dart index bd983ca6..adcb5f95 100644 --- a/packages/stac/lib/src/action_parsers/stac_navigate_action/stac_navigate_action.dart +++ b/packages/stac/lib/src/parsers/actions/stac_navigate_action/stac_navigate_action.dart @@ -1,5 +1,5 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/action_parsers/stac_network_request/stac_network_request.dart'; +import 'package:stac/src/parsers/actions/stac_network_request/stac_network_request.dart'; part 'stac_navigate_action.freezed.dart'; part 'stac_navigate_action.g.dart'; diff --git a/packages/stac/lib/src/action_parsers/stac_navigate_action/stac_navigate_action.freezed.dart b/packages/stac/lib/src/parsers/actions/stac_navigate_action/stac_navigate_action.freezed.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_navigate_action/stac_navigate_action.freezed.dart rename to packages/stac/lib/src/parsers/actions/stac_navigate_action/stac_navigate_action.freezed.dart diff --git a/packages/stac/lib/src/action_parsers/stac_navigate_action/stac_navigate_action.g.dart b/packages/stac/lib/src/parsers/actions/stac_navigate_action/stac_navigate_action.g.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_navigate_action/stac_navigate_action.g.dart rename to packages/stac/lib/src/parsers/actions/stac_navigate_action/stac_navigate_action.g.dart diff --git a/packages/stac/lib/src/action_parsers/stac_navigate_action/stac_navigate_action_parser.dart b/packages/stac/lib/src/parsers/actions/stac_navigate_action/stac_navigate_action_parser.dart similarity index 96% rename from packages/stac/lib/src/action_parsers/stac_navigate_action/stac_navigate_action_parser.dart rename to packages/stac/lib/src/parsers/actions/stac_navigate_action/stac_navigate_action_parser.dart index b4e995a0..2e34a5b0 100644 --- a/packages/stac/lib/src/action_parsers/stac_navigate_action/stac_navigate_action_parser.dart +++ b/packages/stac/lib/src/parsers/actions/stac_navigate_action/stac_navigate_action_parser.dart @@ -1,7 +1,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; -import 'package:stac/src/action_parsers/stac_navigate_action/stac_navigate_action.dart'; +import 'package:stac/src/parsers/actions/stac_navigate_action/stac_navigate_action.dart'; import 'package:stac/src/framework/framework.dart'; import 'package:stac/src/utils/action_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/action_parsers/stac_network_request/stac_network_request.dart b/packages/stac/lib/src/parsers/actions/stac_network_request/stac_network_request.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_network_request/stac_network_request.dart rename to packages/stac/lib/src/parsers/actions/stac_network_request/stac_network_request.dart diff --git a/packages/stac/lib/src/action_parsers/stac_network_request/stac_network_request.freezed.dart b/packages/stac/lib/src/parsers/actions/stac_network_request/stac_network_request.freezed.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_network_request/stac_network_request.freezed.dart rename to packages/stac/lib/src/parsers/actions/stac_network_request/stac_network_request.freezed.dart diff --git a/packages/stac/lib/src/action_parsers/stac_network_request/stac_network_request.g.dart b/packages/stac/lib/src/parsers/actions/stac_network_request/stac_network_request.g.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_network_request/stac_network_request.g.dart rename to packages/stac/lib/src/parsers/actions/stac_network_request/stac_network_request.g.dart diff --git a/packages/stac/lib/src/action_parsers/stac_network_request/stac_network_request_parser.dart b/packages/stac/lib/src/parsers/actions/stac_network_request/stac_network_request_parser.dart similarity index 93% rename from packages/stac/lib/src/action_parsers/stac_network_request/stac_network_request_parser.dart rename to packages/stac/lib/src/parsers/actions/stac_network_request/stac_network_request_parser.dart index 1599e520..d1fbd23b 100644 --- a/packages/stac/lib/src/action_parsers/stac_network_request/stac_network_request_parser.dart +++ b/packages/stac/lib/src/parsers/actions/stac_network_request/stac_network_request_parser.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'package:dio/dio.dart'; import 'package:flutter/material.dart'; -import 'package:stac/src/action_parsers/stac_network_request/stac_network_request.dart'; +import 'package:stac/src/parsers/actions/stac_network_request/stac_network_request.dart'; import 'package:stac/src/framework/framework.dart'; import 'package:stac/src/services/stac_network_service.dart'; import 'package:stac/src/utils/action_type.dart'; diff --git a/packages/stac/lib/src/action_parsers/stac_none_action/stac_none_action_parser.dart b/packages/stac/lib/src/parsers/actions/stac_none_action/stac_none_action_parser.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_none_action/stac_none_action_parser.dart rename to packages/stac/lib/src/parsers/actions/stac_none_action/stac_none_action_parser.dart diff --git a/packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar.dart b/packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar.dart similarity index 75% rename from packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar.dart rename to packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar.dart index 5c38ded2..167aaa9e 100644 --- a/packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar.dart +++ b/packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/action_parsers/stac_snack_bar/stac_snack_bar_action.dart'; -import 'package:stac/src/parsers/stac_duration/stac_duration.dart'; -import 'package:stac/src/parsers/stac_shape_border/stac_shape_border.dart'; -import 'package:stac/src/parsers/parsers.dart'; +import 'package:stac/src/parsers/actions/stac_snack_bar/stac_snack_bar_action.dart'; +import 'package:stac/src/parsers/widgets/stac_duration/stac_duration.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_shape_border/stac_shape_border.dart'; export 'stac_snack_bar_parser.dart'; diff --git a/packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar.freezed.dart b/packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar.freezed.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar.freezed.dart rename to packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar.freezed.dart diff --git a/packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar.g.dart b/packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar.g.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar.g.dart rename to packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar.g.dart diff --git a/packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar_action.dart b/packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar_action.dart similarity index 91% rename from packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar_action.dart rename to packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar_action.dart index c4fff6ca..a5d8bc65 100644 --- a/packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar_action.dart +++ b/packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar_action.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; - -import '../../../stac.dart'; +import 'package:stac/src/framework/framework.dart'; +import 'package:stac/src/utils/color_utils.dart'; part 'stac_snack_bar_action.freezed.dart'; part 'stac_snack_bar_action.g.dart'; diff --git a/packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar_action.freezed.dart b/packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar_action.freezed.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar_action.freezed.dart rename to packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar_action.freezed.dart diff --git a/packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar_action.g.dart b/packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar_action.g.dart similarity index 100% rename from packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar_action.g.dart rename to packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar_action.g.dart diff --git a/packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar_parser.dart b/packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar_parser.dart similarity index 74% rename from packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar_parser.dart rename to packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar_parser.dart index 5ca4b134..09eef421 100644 --- a/packages/stac/lib/src/action_parsers/stac_snack_bar/stac_snack_bar_parser.dart +++ b/packages/stac/lib/src/parsers/actions/stac_snack_bar/stac_snack_bar_parser.dart @@ -1,11 +1,16 @@ import 'dart:async'; import 'package:flutter/material.dart'; -import 'package:stac/src/action_parsers/stac_snack_bar/stac_snack_bar_action.dart'; -import 'package:stac/src/parsers/stac_duration/stac_duration.dart'; -import 'package:stac/src/parsers/stac_shape_border/stac_shape_border.dart'; +import 'package:stac/src/framework/framework.dart'; +import 'package:stac/src/parsers/actions/stac_snack_bar/stac_snack_bar_action.dart'; +import 'package:stac/src/parsers/widgets/stac_duration/stac_duration.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_shape_border/stac_shape_border.dart'; import 'package:stac/src/utils/action_type.dart'; -import 'package:stac/stac.dart'; +import 'package:stac/src/utils/color_utils.dart'; +import 'package:stac_framework/stac_framework.dart'; + +import 'stac_snack_bar.dart'; class StacSnackBarParser extends StacActionParser { const StacSnackBarParser(); diff --git a/packages/stac/lib/src/parsers/parsers.dart b/packages/stac/lib/src/parsers/parsers.dart index 0f356ddd..124a194a 100644 --- a/packages/stac/lib/src/parsers/parsers.dart +++ b/packages/stac/lib/src/parsers/parsers.dart @@ -1,95 +1,3 @@ -export 'package:stac/src/parsers/stac_alert_dialog/stac_alert_dialog.dart'; -export 'package:stac/src/parsers/stac_align/stac_align.dart'; -export 'package:stac/src/parsers/stac_alignment/stac_alignment.dart'; -export 'package:stac/src/parsers/stac_alignment_directional/stac_alignment_directional.dart'; -export 'package:stac/src/parsers/stac_alignment_geometry/stac_alignment_geometry.dart'; -export 'package:stac/src/parsers/stac_app_bar/stac_app_bar.dart'; -export 'package:stac/src/parsers/stac_aspect_ratio/stac_aspect_ratio.dart'; -export 'package:stac/src/parsers/stac_auto_complete/stac_auto_complete.dart'; -export 'package:stac/src/parsers/stac_border/stac_border.dart'; -export 'package:stac/src/parsers/stac_border_radius/stac_border_radius.dart'; -export 'package:stac/src/parsers/stac_border_side/stac_border_side.dart'; -export 'package:stac/src/parsers/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.dart'; -export 'package:stac/src/parsers/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.dart'; -export 'package:stac/src/parsers/stac_bottom_navigation_bar/stac_bottom_navigation_bar.dart'; -export 'package:stac/src/parsers/stac_bottom_navigation_view/stac_bottom_navigation_view.dart'; -export 'package:stac/src/parsers/stac_box_decoration/stac_box_decoration.dart'; -export 'package:stac/src/parsers/stac_box_shadow/stac_box_shadow.dart'; -export 'package:stac/src/parsers/stac_button_style/stac_button_style.dart'; -export 'package:stac/src/parsers/stac_card/stac_card.dart'; -export 'package:stac/src/parsers/stac_card_theme_data/stac_card_theme_data.dart'; -export 'package:stac/src/parsers/stac_carousel_view/stac_carousel_view.dart'; -export 'package:stac/src/parsers/stac_center/stac_center.dart'; -export 'package:stac/src/parsers/stac_check_box/stac_check_box.dart'; -export 'package:stac/src/parsers/stac_chip/stac_chip.dart'; -export 'package:stac/src/parsers/stac_circle_avatar/stac_circle_avatar.dart'; -export 'package:stac/src/parsers/stac_circular_progress_indicator/stac_circular_progress_indicator.dart'; -export 'package:stac/src/parsers/stac_colored_box/stac_colored_box.dart'; -export 'package:stac/src/parsers/stac_column/stac_column.dart'; -export 'package:stac/src/parsers/stac_container/stac_container.dart'; -export 'package:stac/src/parsers/stac_custom_scroll_view/stac_custom_scroll_view.dart'; -export 'package:stac/src/parsers/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.dart'; -export 'package:stac/src/parsers/stac_default_tab_controller/stac_default_tab_controller.dart'; -export 'package:stac/src/parsers/stac_dialog_theme/stac_dialog_theme.dart'; -export 'package:stac/src/parsers/stac_divider/stac_divider.dart'; -export 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -export 'package:stac/src/parsers/stac_elevated_button/stac_elevated_button.dart'; -export 'package:stac/src/parsers/stac_expanded/stac_expanded.dart'; -export 'package:stac/src/parsers/stac_filled_button/stac_filled_button.dart'; -export 'package:stac/src/parsers/stac_fitted_box/stac_fitted_box.dart'; -export 'package:stac/src/parsers/stac_flexible/stac_flexible.dart'; -export 'package:stac/src/parsers/stac_floating_action_button/stac_floating_action_button.dart'; -export 'package:stac/src/parsers/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.dart'; -export 'package:stac/src/parsers/stac_form/stac_form.dart'; -export 'package:stac/src/parsers/stac_fractionally_sized_box/stac_fractionally_sized_box.dart'; -export 'package:stac/src/parsers/stac_gradient/stac_gradient.dart'; -export 'package:stac/src/parsers/stac_grid_view/stac_grid_view.dart'; -export 'package:stac/src/parsers/stac_hero/stac_hero.dart'; -export 'package:stac/src/parsers/stac_icon/stac_icon.dart'; -export 'package:stac/src/parsers/stac_icon_button/stac_icon_button.dart'; -export 'package:stac/src/parsers/stac_image/stac_image.dart'; -export 'package:stac/src/parsers/stac_input_decoration/stac_input_decoration.dart'; -export 'package:stac/src/parsers/stac_input_formatters/stac_input_formatter.dart'; -export 'package:stac/src/parsers/stac_limited_box/stac_limited_box.dart'; -export 'package:stac/src/parsers/stac_linear_progress_indicator/stac_linear_progress_indicator.dart'; -export 'package:stac/src/parsers/stac_list_tile/stac_list_tile.dart'; -export 'package:stac/src/parsers/stac_list_tile_theme_data/stac_list_tile_theme_data.dart'; -export 'package:stac/src/parsers/stac_list_view/stac_list_view.dart'; -export 'package:stac/src/parsers/stac_navigation_bar_item/stac_bottom_navigation_bar_item.dart'; -export 'package:stac/src/parsers/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.dart'; -export 'package:stac/src/parsers/stac_network_widget/stac_network_widget.dart'; -export 'package:stac/src/parsers/stac_opacity/stac_opacity.dart'; -export 'package:stac/src/parsers/stac_outlined_button/stac_outlined_button.dart'; -export 'package:stac/src/parsers/stac_padding/stac_padding.dart'; -export 'package:stac/src/parsers/stac_page_view/stac_page_view.dart'; -export 'package:stac/src/parsers/stac_placeholder/stac_placeholder.dart'; -export 'package:stac/src/parsers/stac_positioned/stac_positioned.dart'; -export 'package:stac/src/parsers/stac_radio/stac_radio.dart'; -export 'package:stac/src/parsers/stac_radio_group/stac_radio_group.dart'; -export 'package:stac/src/parsers/stac_rect_tween/stac_rect_tween.dart'; -export 'package:stac/src/parsers/stac_refresh_indicator/stac_refresh_indicator.dart'; -export 'package:stac/src/parsers/stac_row/stac_row.dart'; -export 'package:stac/src/parsers/stac_safe_area/stac_safe_area.dart'; -export 'package:stac/src/parsers/stac_scaffold/stac_scaffold.dart'; -export 'package:stac/src/parsers/stac_single_child_scroll_view/stac_single_child_scroll_view.dart'; -export 'package:stac/src/parsers/stac_size/stac_size.dart'; -export 'package:stac/src/parsers/stac_sized_box/stac_sized_box.dart'; -export 'package:stac/src/parsers/stac_slider/stac_slider.dart'; -export 'package:stac/src/parsers/stac_sliver_app_bar/stac_sliver_app_bar.dart'; -export 'package:stac/src/parsers/stac_spacer/stac_spacer.dart'; -export 'package:stac/src/parsers/stac_stack/stac_stack.dart'; -export 'package:stac/src/parsers/stac_switch/stac_switch.dart'; -export 'package:stac/src/parsers/stac_tab/stac_tab.dart'; -export 'package:stac/src/parsers/stac_tab_bar/stac_tab_bar.dart'; -export 'package:stac/src/parsers/stac_tab_bar_theme_data/stac_tab_bar_theme_data.dart'; -export 'package:stac/src/parsers/stac_tab_bar_view/stac_tab_bar_view.dart'; -export 'package:stac/src/parsers/stac_table/stac_table.dart'; -export 'package:stac/src/parsers/stac_table_cell/stac_table_cell.dart'; -export 'package:stac/src/parsers/stac_text/stac_text.dart'; -export 'package:stac/src/parsers/stac_text_button/stac_text_button.dart'; -export 'package:stac/src/parsers/stac_text_field/stac_text_field.dart'; -export 'package:stac/src/parsers/stac_text_form_field/stac_text_form_field.dart'; -export 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; -export 'package:stac/src/parsers/stac_theme/stac_theme.dart'; -export 'package:stac/src/parsers/stac_wrap/stac_wrap.dart'; -export 'package:stac/src/parsers/stac_dynamic_view/stac_dynamic_view.dart'; +export 'package:stac/src/parsers/actions/actions.dart'; +export 'package:stac/src/parsers/theme/themes.dart'; +export 'package:stac/src/parsers/widgets/widgets.dart'; diff --git a/packages/stac/lib/src/parsers/stac_app_bar_theme/stac_app_bar_theme.dart b/packages/stac/lib/src/parsers/theme/stac_app_bar_theme/stac_app_bar_theme.dart similarity index 86% rename from packages/stac/lib/src/parsers/stac_app_bar_theme/stac_app_bar_theme.dart rename to packages/stac/lib/src/parsers/theme/stac_app_bar_theme/stac_app_bar_theme.dart index 110e6074..963c86e6 100644 --- a/packages/stac/lib/src/parsers/stac_app_bar_theme/stac_app_bar_theme.dart +++ b/packages/stac/lib/src/parsers/theme/stac_app_bar_theme/stac_app_bar_theme.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_icon_theme_data/stac_icon_theme_data.dart'; -import 'package:stac/src/parsers/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.dart'; +import 'package:stac/src/parsers/widgets/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_app_bar_theme.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_app_bar_theme/stac_app_bar_theme.freezed.dart b/packages/stac/lib/src/parsers/theme/stac_app_bar_theme/stac_app_bar_theme.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_app_bar_theme/stac_app_bar_theme.freezed.dart rename to packages/stac/lib/src/parsers/theme/stac_app_bar_theme/stac_app_bar_theme.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_app_bar_theme/stac_app_bar_theme.g.dart b/packages/stac/lib/src/parsers/theme/stac_app_bar_theme/stac_app_bar_theme.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_app_bar_theme/stac_app_bar_theme.g.dart rename to packages/stac/lib/src/parsers/theme/stac_app_bar_theme/stac_app_bar_theme.g.dart diff --git a/packages/stac/lib/src/parsers/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.dart b/packages/stac/lib/src/parsers/theme/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.dart similarity index 92% rename from packages/stac/lib/src/parsers/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.dart rename to packages/stac/lib/src/parsers/theme/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.dart index 2a877d0a..c6a3dba4 100644 --- a/packages/stac/lib/src/parsers/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.dart +++ b/packages/stac/lib/src/parsers/theme/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_bottom_app_bar_theme.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.freezed.dart b/packages/stac/lib/src/parsers/theme/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.freezed.dart rename to packages/stac/lib/src/parsers/theme/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.g.dart b/packages/stac/lib/src/parsers/theme/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.g.dart rename to packages/stac/lib/src/parsers/theme/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.g.dart diff --git a/packages/stac/lib/src/parsers/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.dart b/packages/stac/lib/src/parsers/theme/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.dart similarity index 91% rename from packages/stac/lib/src/parsers/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.dart rename to packages/stac/lib/src/parsers/theme/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.dart index deab523e..0c76479b 100644 --- a/packages/stac/lib/src/parsers/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.dart +++ b/packages/stac/lib/src/parsers/theme/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_icon_theme_data/stac_icon_theme_data.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_bottom_nav_bar_theme.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.freezed.dart b/packages/stac/lib/src/parsers/theme/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.freezed.dart rename to packages/stac/lib/src/parsers/theme/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.g.dart b/packages/stac/lib/src/parsers/theme/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.g.dart rename to packages/stac/lib/src/parsers/theme/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.g.dart diff --git a/packages/stac/lib/src/parsers/stac_bottom_sheet_theme/stac_bottom_sheet_theme.dart b/packages/stac/lib/src/parsers/theme/stac_bottom_sheet_theme/stac_bottom_sheet_theme.dart similarity index 87% rename from packages/stac/lib/src/parsers/stac_bottom_sheet_theme/stac_bottom_sheet_theme.dart rename to packages/stac/lib/src/parsers/theme/stac_bottom_sheet_theme/stac_bottom_sheet_theme.dart index 95508d7f..67979243 100644 --- a/packages/stac/lib/src/parsers/stac_bottom_sheet_theme/stac_bottom_sheet_theme.dart +++ b/packages/stac/lib/src/parsers/theme/stac_bottom_sheet_theme/stac_bottom_sheet_theme.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_border/stac_border.dart'; -import 'package:stac/src/parsers/stac_box_constraints/stac_box_constraints.dart'; -import 'package:stac/src/parsers/stac_size/stac_size.dart'; +import 'package:stac/src/parsers/widgets/stac_border/stac_border.dart'; +import 'package:stac/src/parsers/widgets/stac_box_constraints/stac_box_constraints.dart'; +import 'package:stac/src/parsers/widgets/stac_size/stac_size.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_bottom_sheet_theme.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_bottom_sheet_theme/stac_bottom_sheet_theme.freezed.dart b/packages/stac/lib/src/parsers/theme/stac_bottom_sheet_theme/stac_bottom_sheet_theme.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_bottom_sheet_theme/stac_bottom_sheet_theme.freezed.dart rename to packages/stac/lib/src/parsers/theme/stac_bottom_sheet_theme/stac_bottom_sheet_theme.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_bottom_sheet_theme/stac_bottom_sheet_theme.g.dart b/packages/stac/lib/src/parsers/theme/stac_bottom_sheet_theme/stac_bottom_sheet_theme.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_bottom_sheet_theme/stac_bottom_sheet_theme.g.dart rename to packages/stac/lib/src/parsers/theme/stac_bottom_sheet_theme/stac_bottom_sheet_theme.g.dart diff --git a/packages/stac/lib/src/parsers/stac_button_style/stac_button_style.dart b/packages/stac/lib/src/parsers/theme/stac_button_style/stac_button_style.dart similarity index 92% rename from packages/stac/lib/src/parsers/stac_button_style/stac_button_style.dart rename to packages/stac/lib/src/parsers/theme/stac_button_style/stac_button_style.dart index 183a3389..d7b2d2e6 100644 --- a/packages/stac/lib/src/parsers/stac_button_style/stac_button_style.dart +++ b/packages/stac/lib/src/parsers/theme/stac_button_style/stac_button_style.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_border_side/stac_border_side.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_rounded_rectangle_border/stac_rounded_rectangle_border.dart'; -import 'package:stac/src/parsers/stac_size/stac_size.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_border_side/stac_border_side.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_rounded_rectangle_border/stac_rounded_rectangle_border.dart'; +import 'package:stac/src/parsers/widgets/stac_size/stac_size.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_button_style.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_button_style/stac_button_style.freezed.dart b/packages/stac/lib/src/parsers/theme/stac_button_style/stac_button_style.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_button_style/stac_button_style.freezed.dart rename to packages/stac/lib/src/parsers/theme/stac_button_style/stac_button_style.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_button_style/stac_button_style.g.dart b/packages/stac/lib/src/parsers/theme/stac_button_style/stac_button_style.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_button_style/stac_button_style.g.dart rename to packages/stac/lib/src/parsers/theme/stac_button_style/stac_button_style.g.dart diff --git a/packages/stac/lib/src/parsers/stac_card_theme_data/stac_card_theme_data.dart b/packages/stac/lib/src/parsers/theme/stac_card_theme_data/stac_card_theme_data.dart similarity index 87% rename from packages/stac/lib/src/parsers/stac_card_theme_data/stac_card_theme_data.dart rename to packages/stac/lib/src/parsers/theme/stac_card_theme_data/stac_card_theme_data.dart index 3ee2d73b..534e0c90 100644 --- a/packages/stac/lib/src/parsers/stac_card_theme_data/stac_card_theme_data.dart +++ b/packages/stac/lib/src/parsers/theme/stac_card_theme_data/stac_card_theme_data.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_border/stac_border.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_border/stac_border.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_card_theme_data.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_card_theme_data/stac_card_theme_data.freezed.dart b/packages/stac/lib/src/parsers/theme/stac_card_theme_data/stac_card_theme_data.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_card_theme_data/stac_card_theme_data.freezed.dart rename to packages/stac/lib/src/parsers/theme/stac_card_theme_data/stac_card_theme_data.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_card_theme_data/stac_card_theme_data.g.dart b/packages/stac/lib/src/parsers/theme/stac_card_theme_data/stac_card_theme_data.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_card_theme_data/stac_card_theme_data.g.dart rename to packages/stac/lib/src/parsers/theme/stac_card_theme_data/stac_card_theme_data.g.dart diff --git a/packages/stac/lib/src/parsers/stac_dialog_theme/stac_dialog_theme.dart b/packages/stac/lib/src/parsers/theme/stac_dialog_theme/stac_dialog_theme.dart similarity index 80% rename from packages/stac/lib/src/parsers/stac_dialog_theme/stac_dialog_theme.dart rename to packages/stac/lib/src/parsers/theme/stac_dialog_theme/stac_dialog_theme.dart index f55a330c..b526daf0 100644 --- a/packages/stac/lib/src/parsers/stac_dialog_theme/stac_dialog_theme.dart +++ b/packages/stac/lib/src/parsers/theme/stac_dialog_theme/stac_dialog_theme.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_alignment_geometry/stac_alignment_geometry.dart'; -import 'package:stac/src/parsers/stac_border/stac_border.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_alignment_geometry/stac_alignment_geometry.dart'; +import 'package:stac/src/parsers/widgets/stac_border/stac_border.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_dialog_theme.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_dialog_theme/stac_dialog_theme.freezed.dart b/packages/stac/lib/src/parsers/theme/stac_dialog_theme/stac_dialog_theme.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_dialog_theme/stac_dialog_theme.freezed.dart rename to packages/stac/lib/src/parsers/theme/stac_dialog_theme/stac_dialog_theme.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_dialog_theme/stac_dialog_theme.g.dart b/packages/stac/lib/src/parsers/theme/stac_dialog_theme/stac_dialog_theme.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_dialog_theme/stac_dialog_theme.g.dart rename to packages/stac/lib/src/parsers/theme/stac_dialog_theme/stac_dialog_theme.g.dart diff --git a/packages/stac/lib/src/parsers/stac_icon_theme_data/stac_icon_theme_data.dart b/packages/stac/lib/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.dart similarity index 93% rename from packages/stac/lib/src/parsers/stac_icon_theme_data/stac_icon_theme_data.dart rename to packages/stac/lib/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.dart index c978b4ab..e56ecd6e 100644 --- a/packages/stac/lib/src/parsers/stac_icon_theme_data/stac_icon_theme_data.dart +++ b/packages/stac/lib/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_shadow/stac_shadow.dart'; +import 'package:stac/src/parsers/widgets/stac_shadow/stac_shadow.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_icon_theme_data.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_icon_theme_data/stac_icon_theme_data.freezed.dart b/packages/stac/lib/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_icon_theme_data/stac_icon_theme_data.freezed.dart rename to packages/stac/lib/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_icon_theme_data/stac_icon_theme_data.g.dart b/packages/stac/lib/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_icon_theme_data/stac_icon_theme_data.g.dart rename to packages/stac/lib/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.g.dart diff --git a/packages/stac/lib/src/parsers/stac_input_decoration_theme/stac_input_decoration_theme.dart b/packages/stac/lib/src/parsers/theme/stac_input_decoration_theme/stac_input_decoration_theme.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_input_decoration_theme/stac_input_decoration_theme.dart rename to packages/stac/lib/src/parsers/theme/stac_input_decoration_theme/stac_input_decoration_theme.dart index 53537684..eebb8b40 100644 --- a/packages/stac/lib/src/parsers/stac_input_decoration_theme/stac_input_decoration_theme.dart +++ b/packages/stac/lib/src/parsers/theme/stac_input_decoration_theme/stac_input_decoration_theme.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_border_side/stac_border_side.dart'; -import 'package:stac/src/parsers/stac_box_constraints/stac_box_constraints.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_input_border/stac_input_border.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_border_side/stac_border_side.dart'; +import 'package:stac/src/parsers/widgets/stac_box_constraints/stac_box_constraints.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_input_border/stac_input_border.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_input_decoration_theme.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_input_decoration_theme/stac_input_decoration_theme.freezed.dart b/packages/stac/lib/src/parsers/theme/stac_input_decoration_theme/stac_input_decoration_theme.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_input_decoration_theme/stac_input_decoration_theme.freezed.dart rename to packages/stac/lib/src/parsers/theme/stac_input_decoration_theme/stac_input_decoration_theme.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_input_decoration_theme/stac_input_decoration_theme.g.dart b/packages/stac/lib/src/parsers/theme/stac_input_decoration_theme/stac_input_decoration_theme.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_input_decoration_theme/stac_input_decoration_theme.g.dart rename to packages/stac/lib/src/parsers/theme/stac_input_decoration_theme/stac_input_decoration_theme.g.dart diff --git a/packages/stac/lib/src/parsers/stac_material_color/stac_material_color.dart b/packages/stac/lib/src/parsers/theme/stac_material_color/stac_material_color.dart similarity index 96% rename from packages/stac/lib/src/parsers/stac_material_color/stac_material_color.dart rename to packages/stac/lib/src/parsers/theme/stac_material_color/stac_material_color.dart index 59a21b44..12b6aa45 100644 --- a/packages/stac/lib/src/parsers/stac_material_color/stac_material_color.dart +++ b/packages/stac/lib/src/parsers/theme/stac_material_color/stac_material_color.dart @@ -25,7 +25,7 @@ abstract class StacMaterialColor with _$StacMaterialColor { _$StacMaterialColorFromJson(json); } -extension StacThemeParser on StacMaterialColor { +extension StacMaterialColorParser on StacMaterialColor { MaterialColor parse(BuildContext context) { Map color = { 50: shade50.toColor(context)!, diff --git a/packages/stac/lib/src/parsers/stac_material_color/stac_material_color.freezed.dart b/packages/stac/lib/src/parsers/theme/stac_material_color/stac_material_color.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_material_color/stac_material_color.freezed.dart rename to packages/stac/lib/src/parsers/theme/stac_material_color/stac_material_color.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_material_color/stac_material_color.g.dart b/packages/stac/lib/src/parsers/theme/stac_material_color/stac_material_color.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_material_color/stac_material_color.g.dart rename to packages/stac/lib/src/parsers/theme/stac_material_color/stac_material_color.g.dart diff --git a/packages/stac/lib/src/parsers/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.dart b/packages/stac/lib/src/parsers/theme/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.dart similarity index 87% rename from packages/stac/lib/src/parsers/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.dart rename to packages/stac/lib/src/parsers/theme/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.dart index a176f075..21adca97 100644 --- a/packages/stac/lib/src/parsers/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.dart +++ b/packages/stac/lib/src/parsers/theme/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_border/stac_border.dart'; -import 'package:stac/src/parsers/stac_icon_theme_data/stac_icon_theme_data.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.dart'; +import 'package:stac/src/parsers/widgets/stac_border/stac_border.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_navigation_bar_theme_data.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.freezed.dart b/packages/stac/lib/src/parsers/theme/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.freezed.dart rename to packages/stac/lib/src/parsers/theme/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.g.dart b/packages/stac/lib/src/parsers/theme/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.g.dart rename to packages/stac/lib/src/parsers/theme/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.g.dart diff --git a/packages/stac/lib/src/parsers/stac_tab_bar_theme_data/stac_tab_bar_theme_data.dart b/packages/stac/lib/src/parsers/theme/stac_tab_bar_theme_data/stac_tab_bar_theme_data.dart similarity index 85% rename from packages/stac/lib/src/parsers/stac_tab_bar_theme_data/stac_tab_bar_theme_data.dart rename to packages/stac/lib/src/parsers/theme/stac_tab_bar_theme_data/stac_tab_bar_theme_data.dart index 23afe384..8ce62680 100644 --- a/packages/stac/lib/src/parsers/stac_tab_bar_theme_data/stac_tab_bar_theme_data.dart +++ b/packages/stac/lib/src/parsers/theme/stac_tab_bar_theme_data/stac_tab_bar_theme_data.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_box_decoration/stac_box_decoration.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_box_decoration/stac_box_decoration.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_tab_bar_theme_data.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_tab_bar_theme_data/stac_tab_bar_theme_data.freezed.dart b/packages/stac/lib/src/parsers/theme/stac_tab_bar_theme_data/stac_tab_bar_theme_data.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_tab_bar_theme_data/stac_tab_bar_theme_data.freezed.dart rename to packages/stac/lib/src/parsers/theme/stac_tab_bar_theme_data/stac_tab_bar_theme_data.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_tab_bar_theme_data/stac_tab_bar_theme_data.g.dart b/packages/stac/lib/src/parsers/theme/stac_tab_bar_theme_data/stac_tab_bar_theme_data.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_tab_bar_theme_data/stac_tab_bar_theme_data.g.dart rename to packages/stac/lib/src/parsers/theme/stac_tab_bar_theme_data/stac_tab_bar_theme_data.g.dart diff --git a/packages/stac/lib/src/parsers/stac_theme/stac_theme.dart b/packages/stac/lib/src/parsers/theme/stac_theme/stac_theme.dart similarity index 55% rename from packages/stac/lib/src/parsers/stac_theme/stac_theme.dart rename to packages/stac/lib/src/parsers/theme/stac_theme/stac_theme.dart index d5c64648..c0c43b40 100644 --- a/packages/stac/lib/src/parsers/stac_theme/stac_theme.dart +++ b/packages/stac/lib/src/parsers/theme/stac_theme/stac_theme.dart @@ -1,20 +1,20 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_app_bar_theme/stac_app_bar_theme.dart'; -import 'package:stac/src/parsers/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.dart'; -import 'package:stac/src/parsers/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.dart'; -import 'package:stac/src/parsers/stac_bottom_sheet_theme/stac_bottom_sheet_theme.dart'; -import 'package:stac/src/parsers/stac_button_style/stac_button_style.dart'; -import 'package:stac/src/parsers/stac_card_theme_data/stac_card_theme_data.dart'; -import 'package:stac/src/parsers/stac_color_scheme/stac_color_scheme.dart'; -import 'package:stac/src/parsers/stac_dialog_theme/stac_dialog_theme.dart'; -import 'package:stac/src/parsers/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.dart'; -import 'package:stac/src/parsers/stac_icon_theme_data/stac_icon_theme_data.dart'; -import 'package:stac/src/parsers/stac_input_decoration_theme/stac_input_decoration_theme.dart'; -import 'package:stac/src/parsers/stac_list_tile_theme_data/stac_list_tile_theme_data.dart'; -import 'package:stac/src/parsers/stac_material_color/stac_material_color.dart'; -import 'package:stac/src/parsers/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.dart'; -import 'package:stac/src/parsers/stac_tab_bar_theme_data/stac_tab_bar_theme_data.dart'; +import 'package:stac/src/parsers/theme/stac_app_bar_theme/stac_app_bar_theme.dart'; +import 'package:stac/src/parsers/theme/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.dart'; +import 'package:stac/src/parsers/theme/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.dart'; +import 'package:stac/src/parsers/theme/stac_bottom_sheet_theme/stac_bottom_sheet_theme.dart'; +import 'package:stac/src/parsers/theme/stac_button_style/stac_button_style.dart'; +import 'package:stac/src/parsers/theme/stac_card_theme_data/stac_card_theme_data.dart'; +import 'package:stac/src/parsers/theme/stac_dialog_theme/stac_dialog_theme.dart'; +import 'package:stac/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.dart'; +import 'package:stac/src/parsers/theme/stac_material_color/stac_material_color.dart'; +import 'package:stac/src/parsers/theme/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.dart'; +import 'package:stac/src/parsers/theme/stac_tab_bar_theme_data/stac_tab_bar_theme_data.dart'; +import 'package:stac/src/parsers/widgets/stac_color_scheme/stac_color_scheme.dart'; +import 'package:stac/src/parsers/widgets/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.dart'; +import 'package:stac/src/parsers/widgets/stac_input_decoration_theme/stac_input_decoration_theme.dart'; +import 'package:stac/src/parsers/widgets/stac_list_tile_theme_data/stac_list_tile_theme_data.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_theme.freezed.dart'; @@ -23,15 +23,22 @@ part 'stac_theme.g.dart'; @freezed abstract class StacTheme with _$StacTheme { const factory StacTheme({ + // GENERAL CONFIGURATION bool? applyElevationOverlayColor, StacInputDecorationTheme? inputDecorationTheme, + MaterialTapTargetSize? materialTapTargetSize, + TargetPlatform? platform, + // ScrollbarThemeData? scrollbarTheme, // Todo bool? useMaterial3, + // COLOR + StacColorScheme? colorScheme, Brightness? brightness, + String? colorSchemeSeed, + // [colorScheme] is the preferred way to configure colors. The [Color] properties + // listed below (as well as primarySwatch) will gradually be phased out, see + // https://github.com/flutter/flutter/issues/91772. String? canvasColor, String? cardColor, - StacColorScheme? colorScheme, - String? colorSchemeSeed, - String? dialogBackgroundColor, String? disabledColor, String? dividerColor, String? focusColor, @@ -48,24 +55,61 @@ abstract class StacTheme with _$StacTheme { String? shadowColor, String? splashColor, String? unselectedWidgetColor, + // TYPOGRAPHY & ICONOGRAPHY String? fontFamily, List? fontFamilyFallback, - StacAppBarTheme? appBarTheme, - StacButtonStyle? elevatedButtonTheme, - StacButtonStyle? outlinedButtonTheme, - StacButtonStyle? iconButtonTheme, + String? package, StacIconThemeData? iconTheme, StacIconThemeData? primaryIconTheme, - StacDialogTheme? dialogTheme, - StacFloatingActionButtonThemeData? floatingActionButtonTheme, - StacButtonStyle? textButtonTheme, + // TextTheme? primaryTextTheme, + // TextTheme? textTheme, + // Typography? typography, + // COMPONENT THEMES + // ActionIconThemeData? actionIconTheme, // todo + StacAppBarTheme? appBarTheme, + // BadgeThemeData? badgeTheme, // todo + // MaterialBannerThemeData? bannerTheme, // todo StacBottomAppBarTheme? bottomAppBarTheme, StacBottomNavBarThemeData? bottomNavigationBarTheme, StacBottomSheetThemeData? bottomSheetTheme, + // ButtonThemeData? buttonTheme, // todo StacCardThemeData? cardTheme, + // CheckboxThemeData? checkboxTheme, // todo + // ChipThemeData? chipTheme, + // DataTableThemeData? dataTableTheme, + // DatePickerThemeData? datePickerTheme, // todo + StacDialogTheme? dialogTheme, + // DividerThemeData? dividerTheme, + // DrawerThemeData? drawerTheme, + // DropdownMenuThemeData? dropdownMenuTheme, + StacButtonStyle? elevatedButtonTheme, + // ExpansionTileThemeData? expansionTileTheme, + // FilledButtonThemeData? filledButtonTheme, + StacFloatingActionButtonThemeData? floatingActionButtonTheme, + StacButtonStyle? iconButtonTheme, StacListTileThemeData? listTileTheme, + // MenuBarThemeData? menuBarTheme, + // MenuButtonThemeData? menuButtonTheme, + // MenuThemeData? menuTheme, StacNavigationBarThemeData? navigationBarTheme, + // NavigationDrawerThemeData? navigationDrawerTheme, + // NavigationRailThemeData? navigationRailTheme, + StacButtonStyle? outlinedButtonTheme, + // PopupMenuThemeData? popupMenuTheme, + // ProgressIndicatorThemeData? progressIndicatorTheme, + // RadioThemeData? radioTheme, + // SearchBarThemeData? searchBarTheme, + // SearchViewThemeData? searchViewTheme, + // SegmentedButtonThemeData? segmentedButtonTheme, + // SliderThemeData? sliderTheme, + // SnackBarThemeData? snackBarTheme, + // SwitchThemeData? switchTheme, StacTabBarThemeData? tabBarTheme, + StacButtonStyle? textButtonTheme, + // TextSelectionThemeData? textSelectionTheme, + // TimePickerThemeData? timePickerTheme, + // ToggleButtonsThemeData? toggleButtonsTheme, + // TooltipThemeData? tooltipTheme, }) = _StacTheme; factory StacTheme.fromJson(Map json) => @@ -76,13 +120,12 @@ extension StacThemeParser on StacTheme { ThemeData? parse(BuildContext context) { return ThemeData( applyElevationOverlayColor: applyElevationOverlayColor, - inputDecorationTheme: inputDecorationTheme.parse(context), + inputDecorationTheme: inputDecorationTheme?.parse(context), useMaterial3: useMaterial3, brightness: brightness, canvasColor: canvasColor?.toColor(context), colorScheme: colorScheme?.parse(context), colorSchemeSeed: colorSchemeSeed.toColor(context), - dialogBackgroundColor: dialogBackgroundColor.toColor(context), disabledColor: disabledColor.toColor(context), dividerColor: dividerColor.toColor(context), focusColor: focusColor.toColor(context), diff --git a/packages/stac/lib/src/parsers/stac_theme/stac_theme.freezed.dart b/packages/stac/lib/src/parsers/theme/stac_theme/stac_theme.freezed.dart similarity index 85% rename from packages/stac/lib/src/parsers/stac_theme/stac_theme.freezed.dart rename to packages/stac/lib/src/parsers/theme/stac_theme/stac_theme.freezed.dart index 0d1148a0..69ac4409 100644 --- a/packages/stac/lib/src/parsers/stac_theme/stac_theme.freezed.dart +++ b/packages/stac/lib/src/parsers/theme/stac_theme/stac_theme.freezed.dart @@ -15,15 +15,20 @@ T _$identity(T value) => value; /// @nodoc mixin _$StacTheme { +// GENERAL CONFIGURATION bool? get applyElevationOverlayColor; StacInputDecorationTheme? get inputDecorationTheme; - bool? get useMaterial3; + MaterialTapTargetSize? get materialTapTargetSize; + TargetPlatform? get platform; // ScrollbarThemeData? scrollbarTheme, // Todo + bool? get useMaterial3; // COLOR + StacColorScheme? get colorScheme; Brightness? get brightness; + String? + get colorSchemeSeed; // [colorScheme] is the preferred way to configure colors. The [Color] properties +// listed below (as well as primarySwatch) will gradually be phased out, see +// https://github.com/flutter/flutter/issues/91772. String? get canvasColor; String? get cardColor; - StacColorScheme? get colorScheme; - String? get colorSchemeSeed; - String? get dialogBackgroundColor; String? get disabledColor; String? get dividerColor; String? get focusColor; @@ -39,25 +44,52 @@ mixin _$StacTheme { String? get secondaryHeaderColor; String? get shadowColor; String? get splashColor; - String? get unselectedWidgetColor; + String? get unselectedWidgetColor; // TYPOGRAPHY & ICONOGRAPHY String? get fontFamily; List? get fontFamilyFallback; - StacAppBarTheme? get appBarTheme; - StacButtonStyle? get elevatedButtonTheme; - StacButtonStyle? get outlinedButtonTheme; - StacButtonStyle? get iconButtonTheme; + String? get package; StacIconThemeData? get iconTheme; - StacIconThemeData? get primaryIconTheme; - StacDialogTheme? get dialogTheme; - StacFloatingActionButtonThemeData? get floatingActionButtonTheme; - StacButtonStyle? get textButtonTheme; + StacIconThemeData? get primaryIconTheme; // TextTheme? primaryTextTheme, +// TextTheme? textTheme, +// Typography? typography, +// COMPONENT THEMES +// ActionIconThemeData? actionIconTheme, // todo + StacAppBarTheme? get appBarTheme; // BadgeThemeData? badgeTheme, // todo +// MaterialBannerThemeData? bannerTheme, // todo StacBottomAppBarTheme? get bottomAppBarTheme; StacBottomNavBarThemeData? get bottomNavigationBarTheme; - StacBottomSheetThemeData? get bottomSheetTheme; - StacCardThemeData? get cardTheme; - StacListTileThemeData? get listTileTheme; - StacNavigationBarThemeData? get navigationBarTheme; + StacBottomSheetThemeData? + get bottomSheetTheme; // ButtonThemeData? buttonTheme, // todo + StacCardThemeData? get cardTheme; // CheckboxThemeData? checkboxTheme, // todo +// ChipThemeData? chipTheme, +// DataTableThemeData? dataTableTheme, +// DatePickerThemeData? datePickerTheme, // todo + StacDialogTheme? get dialogTheme; // DividerThemeData? dividerTheme, +// DrawerThemeData? drawerTheme, +// DropdownMenuThemeData? dropdownMenuTheme, + StacButtonStyle? + get elevatedButtonTheme; // ExpansionTileThemeData? expansionTileTheme, +// FilledButtonThemeData? filledButtonTheme, + StacFloatingActionButtonThemeData? get floatingActionButtonTheme; + StacButtonStyle? get iconButtonTheme; + StacListTileThemeData? get listTileTheme; // MenuBarThemeData? menuBarTheme, +// MenuButtonThemeData? menuButtonTheme, +// MenuThemeData? menuTheme, + StacNavigationBarThemeData? + get navigationBarTheme; // NavigationDrawerThemeData? navigationDrawerTheme, +// NavigationRailThemeData? navigationRailTheme, + StacButtonStyle? + get outlinedButtonTheme; // PopupMenuThemeData? popupMenuTheme, +// ProgressIndicatorThemeData? progressIndicatorTheme, +// RadioThemeData? radioTheme, +// SearchBarThemeData? searchBarTheme, +// SearchViewThemeData? searchViewTheme, +// SegmentedButtonThemeData? segmentedButtonTheme, +// SliderThemeData? sliderTheme, +// SnackBarThemeData? snackBarTheme, +// SwitchThemeData? switchTheme, StacTabBarThemeData? get tabBarTheme; + StacButtonStyle? get textButtonTheme; /// Create a copy of StacTheme /// with the given fields replaced by the non-null parameter values. @@ -79,20 +111,22 @@ mixin _$StacTheme { applyElevationOverlayColor) && (identical(other.inputDecorationTheme, inputDecorationTheme) || other.inputDecorationTheme == inputDecorationTheme) && + (identical(other.materialTapTargetSize, materialTapTargetSize) || + other.materialTapTargetSize == materialTapTargetSize) && + (identical(other.platform, platform) || + other.platform == platform) && (identical(other.useMaterial3, useMaterial3) || other.useMaterial3 == useMaterial3) && + (identical(other.colorScheme, colorScheme) || + other.colorScheme == colorScheme) && (identical(other.brightness, brightness) || other.brightness == brightness) && + (identical(other.colorSchemeSeed, colorSchemeSeed) || + other.colorSchemeSeed == colorSchemeSeed) && (identical(other.canvasColor, canvasColor) || other.canvasColor == canvasColor) && (identical(other.cardColor, cardColor) || other.cardColor == cardColor) && - (identical(other.colorScheme, colorScheme) || - other.colorScheme == colorScheme) && - (identical(other.colorSchemeSeed, colorSchemeSeed) || - other.colorSchemeSeed == colorSchemeSeed) && - (identical(other.dialogBackgroundColor, dialogBackgroundColor) || - other.dialogBackgroundColor == dialogBackgroundColor) && (identical(other.disabledColor, disabledColor) || other.disabledColor == disabledColor) && (identical(other.dividerColor, dividerColor) || @@ -129,27 +163,27 @@ mixin _$StacTheme { other.fontFamily == fontFamily) && const DeepCollectionEquality() .equals(other.fontFamilyFallback, fontFamilyFallback) && - (identical(other.appBarTheme, appBarTheme) || - other.appBarTheme == appBarTheme) && - (identical(other.elevatedButtonTheme, elevatedButtonTheme) || - other.elevatedButtonTheme == elevatedButtonTheme) && - (identical(other.outlinedButtonTheme, outlinedButtonTheme) || - other.outlinedButtonTheme == outlinedButtonTheme) && - (identical(other.iconButtonTheme, iconButtonTheme) || - other.iconButtonTheme == iconButtonTheme) && + (identical(other.package, package) || other.package == package) && (identical(other.iconTheme, iconTheme) || other.iconTheme == iconTheme) && - (identical(other.primaryIconTheme, primaryIconTheme) || other.primaryIconTheme == primaryIconTheme) && - (identical(other.dialogTheme, dialogTheme) || other.dialogTheme == dialogTheme) && - (identical(other.floatingActionButtonTheme, floatingActionButtonTheme) || other.floatingActionButtonTheme == floatingActionButtonTheme) && - (identical(other.textButtonTheme, textButtonTheme) || other.textButtonTheme == textButtonTheme) && - (identical(other.bottomAppBarTheme, bottomAppBarTheme) || other.bottomAppBarTheme == bottomAppBarTheme) && + (identical(other.primaryIconTheme, primaryIconTheme) || + other.primaryIconTheme == primaryIconTheme) && + (identical(other.appBarTheme, appBarTheme) || + other.appBarTheme == appBarTheme) && + (identical(other.bottomAppBarTheme, bottomAppBarTheme) || + other.bottomAppBarTheme == bottomAppBarTheme) && (identical(other.bottomNavigationBarTheme, bottomNavigationBarTheme) || other.bottomNavigationBarTheme == bottomNavigationBarTheme) && (identical(other.bottomSheetTheme, bottomSheetTheme) || other.bottomSheetTheme == bottomSheetTheme) && (identical(other.cardTheme, cardTheme) || other.cardTheme == cardTheme) && + (identical(other.dialogTheme, dialogTheme) || other.dialogTheme == dialogTheme) && + (identical(other.elevatedButtonTheme, elevatedButtonTheme) || other.elevatedButtonTheme == elevatedButtonTheme) && + (identical(other.floatingActionButtonTheme, floatingActionButtonTheme) || other.floatingActionButtonTheme == floatingActionButtonTheme) && + (identical(other.iconButtonTheme, iconButtonTheme) || other.iconButtonTheme == iconButtonTheme) && (identical(other.listTileTheme, listTileTheme) || other.listTileTheme == listTileTheme) && (identical(other.navigationBarTheme, navigationBarTheme) || other.navigationBarTheme == navigationBarTheme) && - (identical(other.tabBarTheme, tabBarTheme) || other.tabBarTheme == tabBarTheme)); + (identical(other.outlinedButtonTheme, outlinedButtonTheme) || other.outlinedButtonTheme == outlinedButtonTheme) && + (identical(other.tabBarTheme, tabBarTheme) || other.tabBarTheme == tabBarTheme) && + (identical(other.textButtonTheme, textButtonTheme) || other.textButtonTheme == textButtonTheme)); } @JsonKey(includeFromJson: false, includeToJson: false) @@ -158,13 +192,14 @@ mixin _$StacTheme { runtimeType, applyElevationOverlayColor, inputDecorationTheme, + materialTapTargetSize, + platform, useMaterial3, + colorScheme, brightness, + colorSchemeSeed, canvasColor, cardColor, - colorScheme, - colorSchemeSeed, - dialogBackgroundColor, disabledColor, dividerColor, focusColor, @@ -183,27 +218,28 @@ mixin _$StacTheme { unselectedWidgetColor, fontFamily, const DeepCollectionEquality().hash(fontFamilyFallback), - appBarTheme, - elevatedButtonTheme, - outlinedButtonTheme, - iconButtonTheme, + package, iconTheme, primaryIconTheme, - dialogTheme, - floatingActionButtonTheme, - textButtonTheme, + appBarTheme, bottomAppBarTheme, bottomNavigationBarTheme, bottomSheetTheme, cardTheme, + dialogTheme, + elevatedButtonTheme, + floatingActionButtonTheme, + iconButtonTheme, listTileTheme, navigationBarTheme, - tabBarTheme + outlinedButtonTheme, + tabBarTheme, + textButtonTheme ]); @override String toString() { - return 'StacTheme(applyElevationOverlayColor: $applyElevationOverlayColor, inputDecorationTheme: $inputDecorationTheme, useMaterial3: $useMaterial3, brightness: $brightness, canvasColor: $canvasColor, cardColor: $cardColor, colorScheme: $colorScheme, colorSchemeSeed: $colorSchemeSeed, dialogBackgroundColor: $dialogBackgroundColor, disabledColor: $disabledColor, dividerColor: $dividerColor, focusColor: $focusColor, highlightColor: $highlightColor, hintColor: $hintColor, hoverColor: $hoverColor, indicatorColor: $indicatorColor, primaryColor: $primaryColor, primaryColorDark: $primaryColorDark, primaryColorLight: $primaryColorLight, primarySwatch: $primarySwatch, scaffoldBackgroundColor: $scaffoldBackgroundColor, secondaryHeaderColor: $secondaryHeaderColor, shadowColor: $shadowColor, splashColor: $splashColor, unselectedWidgetColor: $unselectedWidgetColor, fontFamily: $fontFamily, fontFamilyFallback: $fontFamilyFallback, appBarTheme: $appBarTheme, elevatedButtonTheme: $elevatedButtonTheme, outlinedButtonTheme: $outlinedButtonTheme, iconButtonTheme: $iconButtonTheme, iconTheme: $iconTheme, primaryIconTheme: $primaryIconTheme, dialogTheme: $dialogTheme, floatingActionButtonTheme: $floatingActionButtonTheme, textButtonTheme: $textButtonTheme, bottomAppBarTheme: $bottomAppBarTheme, bottomNavigationBarTheme: $bottomNavigationBarTheme, bottomSheetTheme: $bottomSheetTheme, cardTheme: $cardTheme, listTileTheme: $listTileTheme, navigationBarTheme: $navigationBarTheme, tabBarTheme: $tabBarTheme)'; + return 'StacTheme(applyElevationOverlayColor: $applyElevationOverlayColor, inputDecorationTheme: $inputDecorationTheme, materialTapTargetSize: $materialTapTargetSize, platform: $platform, useMaterial3: $useMaterial3, colorScheme: $colorScheme, brightness: $brightness, colorSchemeSeed: $colorSchemeSeed, canvasColor: $canvasColor, cardColor: $cardColor, disabledColor: $disabledColor, dividerColor: $dividerColor, focusColor: $focusColor, highlightColor: $highlightColor, hintColor: $hintColor, hoverColor: $hoverColor, indicatorColor: $indicatorColor, primaryColor: $primaryColor, primaryColorDark: $primaryColorDark, primaryColorLight: $primaryColorLight, primarySwatch: $primarySwatch, scaffoldBackgroundColor: $scaffoldBackgroundColor, secondaryHeaderColor: $secondaryHeaderColor, shadowColor: $shadowColor, splashColor: $splashColor, unselectedWidgetColor: $unselectedWidgetColor, fontFamily: $fontFamily, fontFamilyFallback: $fontFamilyFallback, package: $package, iconTheme: $iconTheme, primaryIconTheme: $primaryIconTheme, appBarTheme: $appBarTheme, bottomAppBarTheme: $bottomAppBarTheme, bottomNavigationBarTheme: $bottomNavigationBarTheme, bottomSheetTheme: $bottomSheetTheme, cardTheme: $cardTheme, dialogTheme: $dialogTheme, elevatedButtonTheme: $elevatedButtonTheme, floatingActionButtonTheme: $floatingActionButtonTheme, iconButtonTheme: $iconButtonTheme, listTileTheme: $listTileTheme, navigationBarTheme: $navigationBarTheme, outlinedButtonTheme: $outlinedButtonTheme, tabBarTheme: $tabBarTheme, textButtonTheme: $textButtonTheme)'; } } @@ -215,13 +251,14 @@ abstract mixin class $StacThemeCopyWith<$Res> { $Res call( {bool? applyElevationOverlayColor, StacInputDecorationTheme? inputDecorationTheme, + MaterialTapTargetSize? materialTapTargetSize, + TargetPlatform? platform, bool? useMaterial3, + StacColorScheme? colorScheme, Brightness? brightness, + String? colorSchemeSeed, String? canvasColor, String? cardColor, - StacColorScheme? colorScheme, - String? colorSchemeSeed, - String? dialogBackgroundColor, String? disabledColor, String? dividerColor, String? focusColor, @@ -240,43 +277,44 @@ abstract mixin class $StacThemeCopyWith<$Res> { String? unselectedWidgetColor, String? fontFamily, List? fontFamilyFallback, - StacAppBarTheme? appBarTheme, - StacButtonStyle? elevatedButtonTheme, - StacButtonStyle? outlinedButtonTheme, - StacButtonStyle? iconButtonTheme, + String? package, StacIconThemeData? iconTheme, StacIconThemeData? primaryIconTheme, - StacDialogTheme? dialogTheme, - StacFloatingActionButtonThemeData? floatingActionButtonTheme, - StacButtonStyle? textButtonTheme, + StacAppBarTheme? appBarTheme, StacBottomAppBarTheme? bottomAppBarTheme, StacBottomNavBarThemeData? bottomNavigationBarTheme, StacBottomSheetThemeData? bottomSheetTheme, StacCardThemeData? cardTheme, + StacDialogTheme? dialogTheme, + StacButtonStyle? elevatedButtonTheme, + StacFloatingActionButtonThemeData? floatingActionButtonTheme, + StacButtonStyle? iconButtonTheme, StacListTileThemeData? listTileTheme, StacNavigationBarThemeData? navigationBarTheme, - StacTabBarThemeData? tabBarTheme}); + StacButtonStyle? outlinedButtonTheme, + StacTabBarThemeData? tabBarTheme, + StacButtonStyle? textButtonTheme}); $StacInputDecorationThemeCopyWith<$Res>? get inputDecorationTheme; $StacColorSchemeCopyWith<$Res>? get colorScheme; $StacMaterialColorCopyWith<$Res>? get primarySwatch; - $StacAppBarThemeCopyWith<$Res>? get appBarTheme; - $StacButtonStyleCopyWith<$Res>? get elevatedButtonTheme; - $StacButtonStyleCopyWith<$Res>? get outlinedButtonTheme; - $StacButtonStyleCopyWith<$Res>? get iconButtonTheme; $StacIconThemeDataCopyWith<$Res>? get iconTheme; $StacIconThemeDataCopyWith<$Res>? get primaryIconTheme; - $StacDialogThemeCopyWith<$Res>? get dialogTheme; - $StacFloatingActionButtonThemeDataCopyWith<$Res>? - get floatingActionButtonTheme; - $StacButtonStyleCopyWith<$Res>? get textButtonTheme; + $StacAppBarThemeCopyWith<$Res>? get appBarTheme; $StacBottomAppBarThemeCopyWith<$Res>? get bottomAppBarTheme; $StacBottomNavBarThemeDataCopyWith<$Res>? get bottomNavigationBarTheme; $StacBottomSheetThemeDataCopyWith<$Res>? get bottomSheetTheme; $StacCardThemeDataCopyWith<$Res>? get cardTheme; + $StacDialogThemeCopyWith<$Res>? get dialogTheme; + $StacButtonStyleCopyWith<$Res>? get elevatedButtonTheme; + $StacFloatingActionButtonThemeDataCopyWith<$Res>? + get floatingActionButtonTheme; + $StacButtonStyleCopyWith<$Res>? get iconButtonTheme; $StacListTileThemeDataCopyWith<$Res>? get listTileTheme; $StacNavigationBarThemeDataCopyWith<$Res>? get navigationBarTheme; + $StacButtonStyleCopyWith<$Res>? get outlinedButtonTheme; $StacTabBarThemeDataCopyWith<$Res>? get tabBarTheme; + $StacButtonStyleCopyWith<$Res>? get textButtonTheme; } /// @nodoc @@ -293,13 +331,14 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { $Res call({ Object? applyElevationOverlayColor = freezed, Object? inputDecorationTheme = freezed, + Object? materialTapTargetSize = freezed, + Object? platform = freezed, Object? useMaterial3 = freezed, + Object? colorScheme = freezed, Object? brightness = freezed, + Object? colorSchemeSeed = freezed, Object? canvasColor = freezed, Object? cardColor = freezed, - Object? colorScheme = freezed, - Object? colorSchemeSeed = freezed, - Object? dialogBackgroundColor = freezed, Object? disabledColor = freezed, Object? dividerColor = freezed, Object? focusColor = freezed, @@ -318,22 +357,23 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { Object? unselectedWidgetColor = freezed, Object? fontFamily = freezed, Object? fontFamilyFallback = freezed, - Object? appBarTheme = freezed, - Object? elevatedButtonTheme = freezed, - Object? outlinedButtonTheme = freezed, - Object? iconButtonTheme = freezed, + Object? package = freezed, Object? iconTheme = freezed, Object? primaryIconTheme = freezed, - Object? dialogTheme = freezed, - Object? floatingActionButtonTheme = freezed, - Object? textButtonTheme = freezed, + Object? appBarTheme = freezed, Object? bottomAppBarTheme = freezed, Object? bottomNavigationBarTheme = freezed, Object? bottomSheetTheme = freezed, Object? cardTheme = freezed, + Object? dialogTheme = freezed, + Object? elevatedButtonTheme = freezed, + Object? floatingActionButtonTheme = freezed, + Object? iconButtonTheme = freezed, Object? listTileTheme = freezed, Object? navigationBarTheme = freezed, + Object? outlinedButtonTheme = freezed, Object? tabBarTheme = freezed, + Object? textButtonTheme = freezed, }) { return _then(_self.copyWith( applyElevationOverlayColor: freezed == applyElevationOverlayColor @@ -344,14 +384,30 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { ? _self.inputDecorationTheme : inputDecorationTheme // ignore: cast_nullable_to_non_nullable as StacInputDecorationTheme?, + materialTapTargetSize: freezed == materialTapTargetSize + ? _self.materialTapTargetSize + : materialTapTargetSize // ignore: cast_nullable_to_non_nullable + as MaterialTapTargetSize?, + platform: freezed == platform + ? _self.platform + : platform // ignore: cast_nullable_to_non_nullable + as TargetPlatform?, useMaterial3: freezed == useMaterial3 ? _self.useMaterial3 : useMaterial3 // ignore: cast_nullable_to_non_nullable as bool?, + colorScheme: freezed == colorScheme + ? _self.colorScheme + : colorScheme // ignore: cast_nullable_to_non_nullable + as StacColorScheme?, brightness: freezed == brightness ? _self.brightness : brightness // ignore: cast_nullable_to_non_nullable as Brightness?, + colorSchemeSeed: freezed == colorSchemeSeed + ? _self.colorSchemeSeed + : colorSchemeSeed // ignore: cast_nullable_to_non_nullable + as String?, canvasColor: freezed == canvasColor ? _self.canvasColor : canvasColor // ignore: cast_nullable_to_non_nullable @@ -360,18 +416,6 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { ? _self.cardColor : cardColor // ignore: cast_nullable_to_non_nullable as String?, - colorScheme: freezed == colorScheme - ? _self.colorScheme - : colorScheme // ignore: cast_nullable_to_non_nullable - as StacColorScheme?, - colorSchemeSeed: freezed == colorSchemeSeed - ? _self.colorSchemeSeed - : colorSchemeSeed // ignore: cast_nullable_to_non_nullable - as String?, - dialogBackgroundColor: freezed == dialogBackgroundColor - ? _self.dialogBackgroundColor - : dialogBackgroundColor // ignore: cast_nullable_to_non_nullable - as String?, disabledColor: freezed == disabledColor ? _self.disabledColor : disabledColor // ignore: cast_nullable_to_non_nullable @@ -444,22 +488,10 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { ? _self.fontFamilyFallback : fontFamilyFallback // ignore: cast_nullable_to_non_nullable as List?, - appBarTheme: freezed == appBarTheme - ? _self.appBarTheme - : appBarTheme // ignore: cast_nullable_to_non_nullable - as StacAppBarTheme?, - elevatedButtonTheme: freezed == elevatedButtonTheme - ? _self.elevatedButtonTheme - : elevatedButtonTheme // ignore: cast_nullable_to_non_nullable - as StacButtonStyle?, - outlinedButtonTheme: freezed == outlinedButtonTheme - ? _self.outlinedButtonTheme - : outlinedButtonTheme // ignore: cast_nullable_to_non_nullable - as StacButtonStyle?, - iconButtonTheme: freezed == iconButtonTheme - ? _self.iconButtonTheme - : iconButtonTheme // ignore: cast_nullable_to_non_nullable - as StacButtonStyle?, + package: freezed == package + ? _self.package + : package // ignore: cast_nullable_to_non_nullable + as String?, iconTheme: freezed == iconTheme ? _self.iconTheme : iconTheme // ignore: cast_nullable_to_non_nullable @@ -468,18 +500,10 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { ? _self.primaryIconTheme : primaryIconTheme // ignore: cast_nullable_to_non_nullable as StacIconThemeData?, - dialogTheme: freezed == dialogTheme - ? _self.dialogTheme - : dialogTheme // ignore: cast_nullable_to_non_nullable - as StacDialogTheme?, - floatingActionButtonTheme: freezed == floatingActionButtonTheme - ? _self.floatingActionButtonTheme - : floatingActionButtonTheme // ignore: cast_nullable_to_non_nullable - as StacFloatingActionButtonThemeData?, - textButtonTheme: freezed == textButtonTheme - ? _self.textButtonTheme - : textButtonTheme // ignore: cast_nullable_to_non_nullable - as StacButtonStyle?, + appBarTheme: freezed == appBarTheme + ? _self.appBarTheme + : appBarTheme // ignore: cast_nullable_to_non_nullable + as StacAppBarTheme?, bottomAppBarTheme: freezed == bottomAppBarTheme ? _self.bottomAppBarTheme : bottomAppBarTheme // ignore: cast_nullable_to_non_nullable @@ -496,6 +520,22 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { ? _self.cardTheme : cardTheme // ignore: cast_nullable_to_non_nullable as StacCardThemeData?, + dialogTheme: freezed == dialogTheme + ? _self.dialogTheme + : dialogTheme // ignore: cast_nullable_to_non_nullable + as StacDialogTheme?, + elevatedButtonTheme: freezed == elevatedButtonTheme + ? _self.elevatedButtonTheme + : elevatedButtonTheme // ignore: cast_nullable_to_non_nullable + as StacButtonStyle?, + floatingActionButtonTheme: freezed == floatingActionButtonTheme + ? _self.floatingActionButtonTheme + : floatingActionButtonTheme // ignore: cast_nullable_to_non_nullable + as StacFloatingActionButtonThemeData?, + iconButtonTheme: freezed == iconButtonTheme + ? _self.iconButtonTheme + : iconButtonTheme // ignore: cast_nullable_to_non_nullable + as StacButtonStyle?, listTileTheme: freezed == listTileTheme ? _self.listTileTheme : listTileTheme // ignore: cast_nullable_to_non_nullable @@ -504,10 +544,18 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { ? _self.navigationBarTheme : navigationBarTheme // ignore: cast_nullable_to_non_nullable as StacNavigationBarThemeData?, + outlinedButtonTheme: freezed == outlinedButtonTheme + ? _self.outlinedButtonTheme + : outlinedButtonTheme // ignore: cast_nullable_to_non_nullable + as StacButtonStyle?, tabBarTheme: freezed == tabBarTheme ? _self.tabBarTheme : tabBarTheme // ignore: cast_nullable_to_non_nullable as StacTabBarThemeData?, + textButtonTheme: freezed == textButtonTheme + ? _self.textButtonTheme + : textButtonTheme // ignore: cast_nullable_to_non_nullable + as StacButtonStyle?, )); } @@ -558,13 +606,13 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacAppBarThemeCopyWith<$Res>? get appBarTheme { - if (_self.appBarTheme == null) { + $StacIconThemeDataCopyWith<$Res>? get iconTheme { + if (_self.iconTheme == null) { return null; } - return $StacAppBarThemeCopyWith<$Res>(_self.appBarTheme!, (value) { - return _then(_self.copyWith(appBarTheme: value)); + return $StacIconThemeDataCopyWith<$Res>(_self.iconTheme!, (value) { + return _then(_self.copyWith(iconTheme: value)); }); } @@ -572,13 +620,13 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacButtonStyleCopyWith<$Res>? get elevatedButtonTheme { - if (_self.elevatedButtonTheme == null) { + $StacIconThemeDataCopyWith<$Res>? get primaryIconTheme { + if (_self.primaryIconTheme == null) { return null; } - return $StacButtonStyleCopyWith<$Res>(_self.elevatedButtonTheme!, (value) { - return _then(_self.copyWith(elevatedButtonTheme: value)); + return $StacIconThemeDataCopyWith<$Res>(_self.primaryIconTheme!, (value) { + return _then(_self.copyWith(primaryIconTheme: value)); }); } @@ -586,13 +634,13 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacButtonStyleCopyWith<$Res>? get outlinedButtonTheme { - if (_self.outlinedButtonTheme == null) { + $StacAppBarThemeCopyWith<$Res>? get appBarTheme { + if (_self.appBarTheme == null) { return null; } - return $StacButtonStyleCopyWith<$Res>(_self.outlinedButtonTheme!, (value) { - return _then(_self.copyWith(outlinedButtonTheme: value)); + return $StacAppBarThemeCopyWith<$Res>(_self.appBarTheme!, (value) { + return _then(_self.copyWith(appBarTheme: value)); }); } @@ -600,13 +648,14 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacButtonStyleCopyWith<$Res>? get iconButtonTheme { - if (_self.iconButtonTheme == null) { + $StacBottomAppBarThemeCopyWith<$Res>? get bottomAppBarTheme { + if (_self.bottomAppBarTheme == null) { return null; } - return $StacButtonStyleCopyWith<$Res>(_self.iconButtonTheme!, (value) { - return _then(_self.copyWith(iconButtonTheme: value)); + return $StacBottomAppBarThemeCopyWith<$Res>(_self.bottomAppBarTheme!, + (value) { + return _then(_self.copyWith(bottomAppBarTheme: value)); }); } @@ -614,13 +663,14 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacIconThemeDataCopyWith<$Res>? get iconTheme { - if (_self.iconTheme == null) { + $StacBottomNavBarThemeDataCopyWith<$Res>? get bottomNavigationBarTheme { + if (_self.bottomNavigationBarTheme == null) { return null; } - return $StacIconThemeDataCopyWith<$Res>(_self.iconTheme!, (value) { - return _then(_self.copyWith(iconTheme: value)); + return $StacBottomNavBarThemeDataCopyWith<$Res>( + _self.bottomNavigationBarTheme!, (value) { + return _then(_self.copyWith(bottomNavigationBarTheme: value)); }); } @@ -628,13 +678,14 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacIconThemeDataCopyWith<$Res>? get primaryIconTheme { - if (_self.primaryIconTheme == null) { + $StacBottomSheetThemeDataCopyWith<$Res>? get bottomSheetTheme { + if (_self.bottomSheetTheme == null) { return null; } - return $StacIconThemeDataCopyWith<$Res>(_self.primaryIconTheme!, (value) { - return _then(_self.copyWith(primaryIconTheme: value)); + return $StacBottomSheetThemeDataCopyWith<$Res>(_self.bottomSheetTheme!, + (value) { + return _then(_self.copyWith(bottomSheetTheme: value)); }); } @@ -642,13 +693,13 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacDialogThemeCopyWith<$Res>? get dialogTheme { - if (_self.dialogTheme == null) { + $StacCardThemeDataCopyWith<$Res>? get cardTheme { + if (_self.cardTheme == null) { return null; } - return $StacDialogThemeCopyWith<$Res>(_self.dialogTheme!, (value) { - return _then(_self.copyWith(dialogTheme: value)); + return $StacCardThemeDataCopyWith<$Res>(_self.cardTheme!, (value) { + return _then(_self.copyWith(cardTheme: value)); }); } @@ -656,15 +707,13 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacFloatingActionButtonThemeDataCopyWith<$Res>? - get floatingActionButtonTheme { - if (_self.floatingActionButtonTheme == null) { + $StacDialogThemeCopyWith<$Res>? get dialogTheme { + if (_self.dialogTheme == null) { return null; } - return $StacFloatingActionButtonThemeDataCopyWith<$Res>( - _self.floatingActionButtonTheme!, (value) { - return _then(_self.copyWith(floatingActionButtonTheme: value)); + return $StacDialogThemeCopyWith<$Res>(_self.dialogTheme!, (value) { + return _then(_self.copyWith(dialogTheme: value)); }); } @@ -672,13 +721,13 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacButtonStyleCopyWith<$Res>? get textButtonTheme { - if (_self.textButtonTheme == null) { + $StacButtonStyleCopyWith<$Res>? get elevatedButtonTheme { + if (_self.elevatedButtonTheme == null) { return null; } - return $StacButtonStyleCopyWith<$Res>(_self.textButtonTheme!, (value) { - return _then(_self.copyWith(textButtonTheme: value)); + return $StacButtonStyleCopyWith<$Res>(_self.elevatedButtonTheme!, (value) { + return _then(_self.copyWith(elevatedButtonTheme: value)); }); } @@ -686,14 +735,15 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacBottomAppBarThemeCopyWith<$Res>? get bottomAppBarTheme { - if (_self.bottomAppBarTheme == null) { + $StacFloatingActionButtonThemeDataCopyWith<$Res>? + get floatingActionButtonTheme { + if (_self.floatingActionButtonTheme == null) { return null; } - return $StacBottomAppBarThemeCopyWith<$Res>(_self.bottomAppBarTheme!, - (value) { - return _then(_self.copyWith(bottomAppBarTheme: value)); + return $StacFloatingActionButtonThemeDataCopyWith<$Res>( + _self.floatingActionButtonTheme!, (value) { + return _then(_self.copyWith(floatingActionButtonTheme: value)); }); } @@ -701,14 +751,13 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacBottomNavBarThemeDataCopyWith<$Res>? get bottomNavigationBarTheme { - if (_self.bottomNavigationBarTheme == null) { + $StacButtonStyleCopyWith<$Res>? get iconButtonTheme { + if (_self.iconButtonTheme == null) { return null; } - return $StacBottomNavBarThemeDataCopyWith<$Res>( - _self.bottomNavigationBarTheme!, (value) { - return _then(_self.copyWith(bottomNavigationBarTheme: value)); + return $StacButtonStyleCopyWith<$Res>(_self.iconButtonTheme!, (value) { + return _then(_self.copyWith(iconButtonTheme: value)); }); } @@ -716,14 +765,13 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacBottomSheetThemeDataCopyWith<$Res>? get bottomSheetTheme { - if (_self.bottomSheetTheme == null) { + $StacListTileThemeDataCopyWith<$Res>? get listTileTheme { + if (_self.listTileTheme == null) { return null; } - return $StacBottomSheetThemeDataCopyWith<$Res>(_self.bottomSheetTheme!, - (value) { - return _then(_self.copyWith(bottomSheetTheme: value)); + return $StacListTileThemeDataCopyWith<$Res>(_self.listTileTheme!, (value) { + return _then(_self.copyWith(listTileTheme: value)); }); } @@ -731,13 +779,14 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacCardThemeDataCopyWith<$Res>? get cardTheme { - if (_self.cardTheme == null) { + $StacNavigationBarThemeDataCopyWith<$Res>? get navigationBarTheme { + if (_self.navigationBarTheme == null) { return null; } - return $StacCardThemeDataCopyWith<$Res>(_self.cardTheme!, (value) { - return _then(_self.copyWith(cardTheme: value)); + return $StacNavigationBarThemeDataCopyWith<$Res>(_self.navigationBarTheme!, + (value) { + return _then(_self.copyWith(navigationBarTheme: value)); }); } @@ -745,13 +794,13 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacListTileThemeDataCopyWith<$Res>? get listTileTheme { - if (_self.listTileTheme == null) { + $StacButtonStyleCopyWith<$Res>? get outlinedButtonTheme { + if (_self.outlinedButtonTheme == null) { return null; } - return $StacListTileThemeDataCopyWith<$Res>(_self.listTileTheme!, (value) { - return _then(_self.copyWith(listTileTheme: value)); + return $StacButtonStyleCopyWith<$Res>(_self.outlinedButtonTheme!, (value) { + return _then(_self.copyWith(outlinedButtonTheme: value)); }); } @@ -759,14 +808,13 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacNavigationBarThemeDataCopyWith<$Res>? get navigationBarTheme { - if (_self.navigationBarTheme == null) { + $StacTabBarThemeDataCopyWith<$Res>? get tabBarTheme { + if (_self.tabBarTheme == null) { return null; } - return $StacNavigationBarThemeDataCopyWith<$Res>(_self.navigationBarTheme!, - (value) { - return _then(_self.copyWith(navigationBarTheme: value)); + return $StacTabBarThemeDataCopyWith<$Res>(_self.tabBarTheme!, (value) { + return _then(_self.copyWith(tabBarTheme: value)); }); } @@ -774,13 +822,13 @@ class _$StacThemeCopyWithImpl<$Res> implements $StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacTabBarThemeDataCopyWith<$Res>? get tabBarTheme { - if (_self.tabBarTheme == null) { + $StacButtonStyleCopyWith<$Res>? get textButtonTheme { + if (_self.textButtonTheme == null) { return null; } - return $StacTabBarThemeDataCopyWith<$Res>(_self.tabBarTheme!, (value) { - return _then(_self.copyWith(tabBarTheme: value)); + return $StacButtonStyleCopyWith<$Res>(_self.textButtonTheme!, (value) { + return _then(_self.copyWith(textButtonTheme: value)); }); } } @@ -791,13 +839,14 @@ class _StacTheme implements StacTheme { const _StacTheme( {this.applyElevationOverlayColor, this.inputDecorationTheme, + this.materialTapTargetSize, + this.platform, this.useMaterial3, + this.colorScheme, this.brightness, + this.colorSchemeSeed, this.canvasColor, this.cardColor, - this.colorScheme, - this.colorSchemeSeed, - this.dialogBackgroundColor, this.disabledColor, this.dividerColor, this.focusColor, @@ -816,44 +865,53 @@ class _StacTheme implements StacTheme { this.unselectedWidgetColor, this.fontFamily, final List? fontFamilyFallback, - this.appBarTheme, - this.elevatedButtonTheme, - this.outlinedButtonTheme, - this.iconButtonTheme, + this.package, this.iconTheme, this.primaryIconTheme, - this.dialogTheme, - this.floatingActionButtonTheme, - this.textButtonTheme, + this.appBarTheme, this.bottomAppBarTheme, this.bottomNavigationBarTheme, this.bottomSheetTheme, this.cardTheme, + this.dialogTheme, + this.elevatedButtonTheme, + this.floatingActionButtonTheme, + this.iconButtonTheme, this.listTileTheme, this.navigationBarTheme, - this.tabBarTheme}) + this.outlinedButtonTheme, + this.tabBarTheme, + this.textButtonTheme}) : _fontFamilyFallback = fontFamilyFallback; factory _StacTheme.fromJson(Map json) => _$StacThemeFromJson(json); +// GENERAL CONFIGURATION @override final bool? applyElevationOverlayColor; @override final StacInputDecorationTheme? inputDecorationTheme; @override - final bool? useMaterial3; - @override - final Brightness? brightness; + final MaterialTapTargetSize? materialTapTargetSize; @override - final String? canvasColor; + final TargetPlatform? platform; +// ScrollbarThemeData? scrollbarTheme, // Todo @override - final String? cardColor; + final bool? useMaterial3; +// COLOR @override final StacColorScheme? colorScheme; @override + final Brightness? brightness; + @override final String? colorSchemeSeed; +// [colorScheme] is the preferred way to configure colors. The [Color] properties +// listed below (as well as primarySwatch) will gradually be phased out, see +// https://github.com/flutter/flutter/issues/91772. + @override + final String? canvasColor; @override - final String? dialogBackgroundColor; + final String? cardColor; @override final String? disabledColor; @override @@ -886,6 +944,7 @@ class _StacTheme implements StacTheme { final String? splashColor; @override final String? unselectedWidgetColor; +// TYPOGRAPHY & ICONOGRAPHY @override final String? fontFamily; final List? _fontFamilyFallback; @@ -900,37 +959,70 @@ class _StacTheme implements StacTheme { } @override - final StacAppBarTheme? appBarTheme; - @override - final StacButtonStyle? elevatedButtonTheme; - @override - final StacButtonStyle? outlinedButtonTheme; - @override - final StacButtonStyle? iconButtonTheme; + final String? package; @override final StacIconThemeData? iconTheme; @override final StacIconThemeData? primaryIconTheme; +// TextTheme? primaryTextTheme, +// TextTheme? textTheme, +// Typography? typography, +// COMPONENT THEMES +// ActionIconThemeData? actionIconTheme, // todo @override - final StacDialogTheme? dialogTheme; - @override - final StacFloatingActionButtonThemeData? floatingActionButtonTheme; - @override - final StacButtonStyle? textButtonTheme; + final StacAppBarTheme? appBarTheme; +// BadgeThemeData? badgeTheme, // todo +// MaterialBannerThemeData? bannerTheme, // todo @override final StacBottomAppBarTheme? bottomAppBarTheme; @override final StacBottomNavBarThemeData? bottomNavigationBarTheme; @override final StacBottomSheetThemeData? bottomSheetTheme; +// ButtonThemeData? buttonTheme, // todo @override final StacCardThemeData? cardTheme; +// CheckboxThemeData? checkboxTheme, // todo +// ChipThemeData? chipTheme, +// DataTableThemeData? dataTableTheme, +// DatePickerThemeData? datePickerTheme, // todo + @override + final StacDialogTheme? dialogTheme; +// DividerThemeData? dividerTheme, +// DrawerThemeData? drawerTheme, +// DropdownMenuThemeData? dropdownMenuTheme, + @override + final StacButtonStyle? elevatedButtonTheme; +// ExpansionTileThemeData? expansionTileTheme, +// FilledButtonThemeData? filledButtonTheme, + @override + final StacFloatingActionButtonThemeData? floatingActionButtonTheme; + @override + final StacButtonStyle? iconButtonTheme; @override final StacListTileThemeData? listTileTheme; +// MenuBarThemeData? menuBarTheme, +// MenuButtonThemeData? menuButtonTheme, +// MenuThemeData? menuTheme, @override final StacNavigationBarThemeData? navigationBarTheme; +// NavigationDrawerThemeData? navigationDrawerTheme, +// NavigationRailThemeData? navigationRailTheme, + @override + final StacButtonStyle? outlinedButtonTheme; +// PopupMenuThemeData? popupMenuTheme, +// ProgressIndicatorThemeData? progressIndicatorTheme, +// RadioThemeData? radioTheme, +// SearchBarThemeData? searchBarTheme, +// SearchViewThemeData? searchViewTheme, +// SegmentedButtonThemeData? segmentedButtonTheme, +// SliderThemeData? sliderTheme, +// SnackBarThemeData? snackBarTheme, +// SwitchThemeData? switchTheme, @override final StacTabBarThemeData? tabBarTheme; + @override + final StacButtonStyle? textButtonTheme; /// Create a copy of StacTheme /// with the given fields replaced by the non-null parameter values. @@ -957,20 +1049,22 @@ class _StacTheme implements StacTheme { applyElevationOverlayColor) && (identical(other.inputDecorationTheme, inputDecorationTheme) || other.inputDecorationTheme == inputDecorationTheme) && + (identical(other.materialTapTargetSize, materialTapTargetSize) || + other.materialTapTargetSize == materialTapTargetSize) && + (identical(other.platform, platform) || + other.platform == platform) && (identical(other.useMaterial3, useMaterial3) || other.useMaterial3 == useMaterial3) && + (identical(other.colorScheme, colorScheme) || + other.colorScheme == colorScheme) && (identical(other.brightness, brightness) || other.brightness == brightness) && + (identical(other.colorSchemeSeed, colorSchemeSeed) || + other.colorSchemeSeed == colorSchemeSeed) && (identical(other.canvasColor, canvasColor) || other.canvasColor == canvasColor) && (identical(other.cardColor, cardColor) || other.cardColor == cardColor) && - (identical(other.colorScheme, colorScheme) || - other.colorScheme == colorScheme) && - (identical(other.colorSchemeSeed, colorSchemeSeed) || - other.colorSchemeSeed == colorSchemeSeed) && - (identical(other.dialogBackgroundColor, dialogBackgroundColor) || - other.dialogBackgroundColor == dialogBackgroundColor) && (identical(other.disabledColor, disabledColor) || other.disabledColor == disabledColor) && (identical(other.dividerColor, dividerColor) || @@ -1007,27 +1101,27 @@ class _StacTheme implements StacTheme { other.fontFamily == fontFamily) && const DeepCollectionEquality() .equals(other._fontFamilyFallback, _fontFamilyFallback) && - (identical(other.appBarTheme, appBarTheme) || - other.appBarTheme == appBarTheme) && - (identical(other.elevatedButtonTheme, elevatedButtonTheme) || - other.elevatedButtonTheme == elevatedButtonTheme) && - (identical(other.outlinedButtonTheme, outlinedButtonTheme) || - other.outlinedButtonTheme == outlinedButtonTheme) && - (identical(other.iconButtonTheme, iconButtonTheme) || - other.iconButtonTheme == iconButtonTheme) && + (identical(other.package, package) || other.package == package) && (identical(other.iconTheme, iconTheme) || other.iconTheme == iconTheme) && - (identical(other.primaryIconTheme, primaryIconTheme) || other.primaryIconTheme == primaryIconTheme) && - (identical(other.dialogTheme, dialogTheme) || other.dialogTheme == dialogTheme) && - (identical(other.floatingActionButtonTheme, floatingActionButtonTheme) || other.floatingActionButtonTheme == floatingActionButtonTheme) && - (identical(other.textButtonTheme, textButtonTheme) || other.textButtonTheme == textButtonTheme) && - (identical(other.bottomAppBarTheme, bottomAppBarTheme) || other.bottomAppBarTheme == bottomAppBarTheme) && + (identical(other.primaryIconTheme, primaryIconTheme) || + other.primaryIconTheme == primaryIconTheme) && + (identical(other.appBarTheme, appBarTheme) || + other.appBarTheme == appBarTheme) && + (identical(other.bottomAppBarTheme, bottomAppBarTheme) || + other.bottomAppBarTheme == bottomAppBarTheme) && (identical(other.bottomNavigationBarTheme, bottomNavigationBarTheme) || other.bottomNavigationBarTheme == bottomNavigationBarTheme) && (identical(other.bottomSheetTheme, bottomSheetTheme) || other.bottomSheetTheme == bottomSheetTheme) && (identical(other.cardTheme, cardTheme) || other.cardTheme == cardTheme) && + (identical(other.dialogTheme, dialogTheme) || other.dialogTheme == dialogTheme) && + (identical(other.elevatedButtonTheme, elevatedButtonTheme) || other.elevatedButtonTheme == elevatedButtonTheme) && + (identical(other.floatingActionButtonTheme, floatingActionButtonTheme) || other.floatingActionButtonTheme == floatingActionButtonTheme) && + (identical(other.iconButtonTheme, iconButtonTheme) || other.iconButtonTheme == iconButtonTheme) && (identical(other.listTileTheme, listTileTheme) || other.listTileTheme == listTileTheme) && (identical(other.navigationBarTheme, navigationBarTheme) || other.navigationBarTheme == navigationBarTheme) && - (identical(other.tabBarTheme, tabBarTheme) || other.tabBarTheme == tabBarTheme)); + (identical(other.outlinedButtonTheme, outlinedButtonTheme) || other.outlinedButtonTheme == outlinedButtonTheme) && + (identical(other.tabBarTheme, tabBarTheme) || other.tabBarTheme == tabBarTheme) && + (identical(other.textButtonTheme, textButtonTheme) || other.textButtonTheme == textButtonTheme)); } @JsonKey(includeFromJson: false, includeToJson: false) @@ -1036,13 +1130,14 @@ class _StacTheme implements StacTheme { runtimeType, applyElevationOverlayColor, inputDecorationTheme, + materialTapTargetSize, + platform, useMaterial3, + colorScheme, brightness, + colorSchemeSeed, canvasColor, cardColor, - colorScheme, - colorSchemeSeed, - dialogBackgroundColor, disabledColor, dividerColor, focusColor, @@ -1061,27 +1156,28 @@ class _StacTheme implements StacTheme { unselectedWidgetColor, fontFamily, const DeepCollectionEquality().hash(_fontFamilyFallback), - appBarTheme, - elevatedButtonTheme, - outlinedButtonTheme, - iconButtonTheme, + package, iconTheme, primaryIconTheme, - dialogTheme, - floatingActionButtonTheme, - textButtonTheme, + appBarTheme, bottomAppBarTheme, bottomNavigationBarTheme, bottomSheetTheme, cardTheme, + dialogTheme, + elevatedButtonTheme, + floatingActionButtonTheme, + iconButtonTheme, listTileTheme, navigationBarTheme, - tabBarTheme + outlinedButtonTheme, + tabBarTheme, + textButtonTheme ]); @override String toString() { - return 'StacTheme(applyElevationOverlayColor: $applyElevationOverlayColor, inputDecorationTheme: $inputDecorationTheme, useMaterial3: $useMaterial3, brightness: $brightness, canvasColor: $canvasColor, cardColor: $cardColor, colorScheme: $colorScheme, colorSchemeSeed: $colorSchemeSeed, dialogBackgroundColor: $dialogBackgroundColor, disabledColor: $disabledColor, dividerColor: $dividerColor, focusColor: $focusColor, highlightColor: $highlightColor, hintColor: $hintColor, hoverColor: $hoverColor, indicatorColor: $indicatorColor, primaryColor: $primaryColor, primaryColorDark: $primaryColorDark, primaryColorLight: $primaryColorLight, primarySwatch: $primarySwatch, scaffoldBackgroundColor: $scaffoldBackgroundColor, secondaryHeaderColor: $secondaryHeaderColor, shadowColor: $shadowColor, splashColor: $splashColor, unselectedWidgetColor: $unselectedWidgetColor, fontFamily: $fontFamily, fontFamilyFallback: $fontFamilyFallback, appBarTheme: $appBarTheme, elevatedButtonTheme: $elevatedButtonTheme, outlinedButtonTheme: $outlinedButtonTheme, iconButtonTheme: $iconButtonTheme, iconTheme: $iconTheme, primaryIconTheme: $primaryIconTheme, dialogTheme: $dialogTheme, floatingActionButtonTheme: $floatingActionButtonTheme, textButtonTheme: $textButtonTheme, bottomAppBarTheme: $bottomAppBarTheme, bottomNavigationBarTheme: $bottomNavigationBarTheme, bottomSheetTheme: $bottomSheetTheme, cardTheme: $cardTheme, listTileTheme: $listTileTheme, navigationBarTheme: $navigationBarTheme, tabBarTheme: $tabBarTheme)'; + return 'StacTheme(applyElevationOverlayColor: $applyElevationOverlayColor, inputDecorationTheme: $inputDecorationTheme, materialTapTargetSize: $materialTapTargetSize, platform: $platform, useMaterial3: $useMaterial3, colorScheme: $colorScheme, brightness: $brightness, colorSchemeSeed: $colorSchemeSeed, canvasColor: $canvasColor, cardColor: $cardColor, disabledColor: $disabledColor, dividerColor: $dividerColor, focusColor: $focusColor, highlightColor: $highlightColor, hintColor: $hintColor, hoverColor: $hoverColor, indicatorColor: $indicatorColor, primaryColor: $primaryColor, primaryColorDark: $primaryColorDark, primaryColorLight: $primaryColorLight, primarySwatch: $primarySwatch, scaffoldBackgroundColor: $scaffoldBackgroundColor, secondaryHeaderColor: $secondaryHeaderColor, shadowColor: $shadowColor, splashColor: $splashColor, unselectedWidgetColor: $unselectedWidgetColor, fontFamily: $fontFamily, fontFamilyFallback: $fontFamilyFallback, package: $package, iconTheme: $iconTheme, primaryIconTheme: $primaryIconTheme, appBarTheme: $appBarTheme, bottomAppBarTheme: $bottomAppBarTheme, bottomNavigationBarTheme: $bottomNavigationBarTheme, bottomSheetTheme: $bottomSheetTheme, cardTheme: $cardTheme, dialogTheme: $dialogTheme, elevatedButtonTheme: $elevatedButtonTheme, floatingActionButtonTheme: $floatingActionButtonTheme, iconButtonTheme: $iconButtonTheme, listTileTheme: $listTileTheme, navigationBarTheme: $navigationBarTheme, outlinedButtonTheme: $outlinedButtonTheme, tabBarTheme: $tabBarTheme, textButtonTheme: $textButtonTheme)'; } } @@ -1096,13 +1192,14 @@ abstract mixin class _$StacThemeCopyWith<$Res> $Res call( {bool? applyElevationOverlayColor, StacInputDecorationTheme? inputDecorationTheme, + MaterialTapTargetSize? materialTapTargetSize, + TargetPlatform? platform, bool? useMaterial3, + StacColorScheme? colorScheme, Brightness? brightness, + String? colorSchemeSeed, String? canvasColor, String? cardColor, - StacColorScheme? colorScheme, - String? colorSchemeSeed, - String? dialogBackgroundColor, String? disabledColor, String? dividerColor, String? focusColor, @@ -1121,22 +1218,23 @@ abstract mixin class _$StacThemeCopyWith<$Res> String? unselectedWidgetColor, String? fontFamily, List? fontFamilyFallback, - StacAppBarTheme? appBarTheme, - StacButtonStyle? elevatedButtonTheme, - StacButtonStyle? outlinedButtonTheme, - StacButtonStyle? iconButtonTheme, + String? package, StacIconThemeData? iconTheme, StacIconThemeData? primaryIconTheme, - StacDialogTheme? dialogTheme, - StacFloatingActionButtonThemeData? floatingActionButtonTheme, - StacButtonStyle? textButtonTheme, + StacAppBarTheme? appBarTheme, StacBottomAppBarTheme? bottomAppBarTheme, StacBottomNavBarThemeData? bottomNavigationBarTheme, StacBottomSheetThemeData? bottomSheetTheme, StacCardThemeData? cardTheme, + StacDialogTheme? dialogTheme, + StacButtonStyle? elevatedButtonTheme, + StacFloatingActionButtonThemeData? floatingActionButtonTheme, + StacButtonStyle? iconButtonTheme, StacListTileThemeData? listTileTheme, StacNavigationBarThemeData? navigationBarTheme, - StacTabBarThemeData? tabBarTheme}); + StacButtonStyle? outlinedButtonTheme, + StacTabBarThemeData? tabBarTheme, + StacButtonStyle? textButtonTheme}); @override $StacInputDecorationThemeCopyWith<$Res>? get inputDecorationTheme; @@ -1145,24 +1243,11 @@ abstract mixin class _$StacThemeCopyWith<$Res> @override $StacMaterialColorCopyWith<$Res>? get primarySwatch; @override - $StacAppBarThemeCopyWith<$Res>? get appBarTheme; - @override - $StacButtonStyleCopyWith<$Res>? get elevatedButtonTheme; - @override - $StacButtonStyleCopyWith<$Res>? get outlinedButtonTheme; - @override - $StacButtonStyleCopyWith<$Res>? get iconButtonTheme; - @override $StacIconThemeDataCopyWith<$Res>? get iconTheme; @override $StacIconThemeDataCopyWith<$Res>? get primaryIconTheme; @override - $StacDialogThemeCopyWith<$Res>? get dialogTheme; - @override - $StacFloatingActionButtonThemeDataCopyWith<$Res>? - get floatingActionButtonTheme; - @override - $StacButtonStyleCopyWith<$Res>? get textButtonTheme; + $StacAppBarThemeCopyWith<$Res>? get appBarTheme; @override $StacBottomAppBarThemeCopyWith<$Res>? get bottomAppBarTheme; @override @@ -1172,11 +1257,24 @@ abstract mixin class _$StacThemeCopyWith<$Res> @override $StacCardThemeDataCopyWith<$Res>? get cardTheme; @override + $StacDialogThemeCopyWith<$Res>? get dialogTheme; + @override + $StacButtonStyleCopyWith<$Res>? get elevatedButtonTheme; + @override + $StacFloatingActionButtonThemeDataCopyWith<$Res>? + get floatingActionButtonTheme; + @override + $StacButtonStyleCopyWith<$Res>? get iconButtonTheme; + @override $StacListTileThemeDataCopyWith<$Res>? get listTileTheme; @override $StacNavigationBarThemeDataCopyWith<$Res>? get navigationBarTheme; @override + $StacButtonStyleCopyWith<$Res>? get outlinedButtonTheme; + @override $StacTabBarThemeDataCopyWith<$Res>? get tabBarTheme; + @override + $StacButtonStyleCopyWith<$Res>? get textButtonTheme; } /// @nodoc @@ -1193,13 +1291,14 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { $Res call({ Object? applyElevationOverlayColor = freezed, Object? inputDecorationTheme = freezed, + Object? materialTapTargetSize = freezed, + Object? platform = freezed, Object? useMaterial3 = freezed, + Object? colorScheme = freezed, Object? brightness = freezed, + Object? colorSchemeSeed = freezed, Object? canvasColor = freezed, Object? cardColor = freezed, - Object? colorScheme = freezed, - Object? colorSchemeSeed = freezed, - Object? dialogBackgroundColor = freezed, Object? disabledColor = freezed, Object? dividerColor = freezed, Object? focusColor = freezed, @@ -1218,22 +1317,23 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { Object? unselectedWidgetColor = freezed, Object? fontFamily = freezed, Object? fontFamilyFallback = freezed, - Object? appBarTheme = freezed, - Object? elevatedButtonTheme = freezed, - Object? outlinedButtonTheme = freezed, - Object? iconButtonTheme = freezed, + Object? package = freezed, Object? iconTheme = freezed, Object? primaryIconTheme = freezed, - Object? dialogTheme = freezed, - Object? floatingActionButtonTheme = freezed, - Object? textButtonTheme = freezed, + Object? appBarTheme = freezed, Object? bottomAppBarTheme = freezed, Object? bottomNavigationBarTheme = freezed, Object? bottomSheetTheme = freezed, Object? cardTheme = freezed, + Object? dialogTheme = freezed, + Object? elevatedButtonTheme = freezed, + Object? floatingActionButtonTheme = freezed, + Object? iconButtonTheme = freezed, Object? listTileTheme = freezed, Object? navigationBarTheme = freezed, + Object? outlinedButtonTheme = freezed, Object? tabBarTheme = freezed, + Object? textButtonTheme = freezed, }) { return _then(_StacTheme( applyElevationOverlayColor: freezed == applyElevationOverlayColor @@ -1244,14 +1344,30 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { ? _self.inputDecorationTheme : inputDecorationTheme // ignore: cast_nullable_to_non_nullable as StacInputDecorationTheme?, + materialTapTargetSize: freezed == materialTapTargetSize + ? _self.materialTapTargetSize + : materialTapTargetSize // ignore: cast_nullable_to_non_nullable + as MaterialTapTargetSize?, + platform: freezed == platform + ? _self.platform + : platform // ignore: cast_nullable_to_non_nullable + as TargetPlatform?, useMaterial3: freezed == useMaterial3 ? _self.useMaterial3 : useMaterial3 // ignore: cast_nullable_to_non_nullable as bool?, + colorScheme: freezed == colorScheme + ? _self.colorScheme + : colorScheme // ignore: cast_nullable_to_non_nullable + as StacColorScheme?, brightness: freezed == brightness ? _self.brightness : brightness // ignore: cast_nullable_to_non_nullable as Brightness?, + colorSchemeSeed: freezed == colorSchemeSeed + ? _self.colorSchemeSeed + : colorSchemeSeed // ignore: cast_nullable_to_non_nullable + as String?, canvasColor: freezed == canvasColor ? _self.canvasColor : canvasColor // ignore: cast_nullable_to_non_nullable @@ -1260,18 +1376,6 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { ? _self.cardColor : cardColor // ignore: cast_nullable_to_non_nullable as String?, - colorScheme: freezed == colorScheme - ? _self.colorScheme - : colorScheme // ignore: cast_nullable_to_non_nullable - as StacColorScheme?, - colorSchemeSeed: freezed == colorSchemeSeed - ? _self.colorSchemeSeed - : colorSchemeSeed // ignore: cast_nullable_to_non_nullable - as String?, - dialogBackgroundColor: freezed == dialogBackgroundColor - ? _self.dialogBackgroundColor - : dialogBackgroundColor // ignore: cast_nullable_to_non_nullable - as String?, disabledColor: freezed == disabledColor ? _self.disabledColor : disabledColor // ignore: cast_nullable_to_non_nullable @@ -1344,22 +1448,10 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { ? _self._fontFamilyFallback : fontFamilyFallback // ignore: cast_nullable_to_non_nullable as List?, - appBarTheme: freezed == appBarTheme - ? _self.appBarTheme - : appBarTheme // ignore: cast_nullable_to_non_nullable - as StacAppBarTheme?, - elevatedButtonTheme: freezed == elevatedButtonTheme - ? _self.elevatedButtonTheme - : elevatedButtonTheme // ignore: cast_nullable_to_non_nullable - as StacButtonStyle?, - outlinedButtonTheme: freezed == outlinedButtonTheme - ? _self.outlinedButtonTheme - : outlinedButtonTheme // ignore: cast_nullable_to_non_nullable - as StacButtonStyle?, - iconButtonTheme: freezed == iconButtonTheme - ? _self.iconButtonTheme - : iconButtonTheme // ignore: cast_nullable_to_non_nullable - as StacButtonStyle?, + package: freezed == package + ? _self.package + : package // ignore: cast_nullable_to_non_nullable + as String?, iconTheme: freezed == iconTheme ? _self.iconTheme : iconTheme // ignore: cast_nullable_to_non_nullable @@ -1368,18 +1460,10 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { ? _self.primaryIconTheme : primaryIconTheme // ignore: cast_nullable_to_non_nullable as StacIconThemeData?, - dialogTheme: freezed == dialogTheme - ? _self.dialogTheme - : dialogTheme // ignore: cast_nullable_to_non_nullable - as StacDialogTheme?, - floatingActionButtonTheme: freezed == floatingActionButtonTheme - ? _self.floatingActionButtonTheme - : floatingActionButtonTheme // ignore: cast_nullable_to_non_nullable - as StacFloatingActionButtonThemeData?, - textButtonTheme: freezed == textButtonTheme - ? _self.textButtonTheme - : textButtonTheme // ignore: cast_nullable_to_non_nullable - as StacButtonStyle?, + appBarTheme: freezed == appBarTheme + ? _self.appBarTheme + : appBarTheme // ignore: cast_nullable_to_non_nullable + as StacAppBarTheme?, bottomAppBarTheme: freezed == bottomAppBarTheme ? _self.bottomAppBarTheme : bottomAppBarTheme // ignore: cast_nullable_to_non_nullable @@ -1396,6 +1480,22 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { ? _self.cardTheme : cardTheme // ignore: cast_nullable_to_non_nullable as StacCardThemeData?, + dialogTheme: freezed == dialogTheme + ? _self.dialogTheme + : dialogTheme // ignore: cast_nullable_to_non_nullable + as StacDialogTheme?, + elevatedButtonTheme: freezed == elevatedButtonTheme + ? _self.elevatedButtonTheme + : elevatedButtonTheme // ignore: cast_nullable_to_non_nullable + as StacButtonStyle?, + floatingActionButtonTheme: freezed == floatingActionButtonTheme + ? _self.floatingActionButtonTheme + : floatingActionButtonTheme // ignore: cast_nullable_to_non_nullable + as StacFloatingActionButtonThemeData?, + iconButtonTheme: freezed == iconButtonTheme + ? _self.iconButtonTheme + : iconButtonTheme // ignore: cast_nullable_to_non_nullable + as StacButtonStyle?, listTileTheme: freezed == listTileTheme ? _self.listTileTheme : listTileTheme // ignore: cast_nullable_to_non_nullable @@ -1404,10 +1504,18 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { ? _self.navigationBarTheme : navigationBarTheme // ignore: cast_nullable_to_non_nullable as StacNavigationBarThemeData?, + outlinedButtonTheme: freezed == outlinedButtonTheme + ? _self.outlinedButtonTheme + : outlinedButtonTheme // ignore: cast_nullable_to_non_nullable + as StacButtonStyle?, tabBarTheme: freezed == tabBarTheme ? _self.tabBarTheme : tabBarTheme // ignore: cast_nullable_to_non_nullable as StacTabBarThemeData?, + textButtonTheme: freezed == textButtonTheme + ? _self.textButtonTheme + : textButtonTheme // ignore: cast_nullable_to_non_nullable + as StacButtonStyle?, )); } @@ -1458,13 +1566,13 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacAppBarThemeCopyWith<$Res>? get appBarTheme { - if (_self.appBarTheme == null) { + $StacIconThemeDataCopyWith<$Res>? get iconTheme { + if (_self.iconTheme == null) { return null; } - return $StacAppBarThemeCopyWith<$Res>(_self.appBarTheme!, (value) { - return _then(_self.copyWith(appBarTheme: value)); + return $StacIconThemeDataCopyWith<$Res>(_self.iconTheme!, (value) { + return _then(_self.copyWith(iconTheme: value)); }); } @@ -1472,13 +1580,13 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacButtonStyleCopyWith<$Res>? get elevatedButtonTheme { - if (_self.elevatedButtonTheme == null) { + $StacIconThemeDataCopyWith<$Res>? get primaryIconTheme { + if (_self.primaryIconTheme == null) { return null; } - return $StacButtonStyleCopyWith<$Res>(_self.elevatedButtonTheme!, (value) { - return _then(_self.copyWith(elevatedButtonTheme: value)); + return $StacIconThemeDataCopyWith<$Res>(_self.primaryIconTheme!, (value) { + return _then(_self.copyWith(primaryIconTheme: value)); }); } @@ -1486,13 +1594,13 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacButtonStyleCopyWith<$Res>? get outlinedButtonTheme { - if (_self.outlinedButtonTheme == null) { + $StacAppBarThemeCopyWith<$Res>? get appBarTheme { + if (_self.appBarTheme == null) { return null; } - return $StacButtonStyleCopyWith<$Res>(_self.outlinedButtonTheme!, (value) { - return _then(_self.copyWith(outlinedButtonTheme: value)); + return $StacAppBarThemeCopyWith<$Res>(_self.appBarTheme!, (value) { + return _then(_self.copyWith(appBarTheme: value)); }); } @@ -1500,13 +1608,14 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacButtonStyleCopyWith<$Res>? get iconButtonTheme { - if (_self.iconButtonTheme == null) { + $StacBottomAppBarThemeCopyWith<$Res>? get bottomAppBarTheme { + if (_self.bottomAppBarTheme == null) { return null; } - return $StacButtonStyleCopyWith<$Res>(_self.iconButtonTheme!, (value) { - return _then(_self.copyWith(iconButtonTheme: value)); + return $StacBottomAppBarThemeCopyWith<$Res>(_self.bottomAppBarTheme!, + (value) { + return _then(_self.copyWith(bottomAppBarTheme: value)); }); } @@ -1514,13 +1623,14 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacIconThemeDataCopyWith<$Res>? get iconTheme { - if (_self.iconTheme == null) { + $StacBottomNavBarThemeDataCopyWith<$Res>? get bottomNavigationBarTheme { + if (_self.bottomNavigationBarTheme == null) { return null; } - return $StacIconThemeDataCopyWith<$Res>(_self.iconTheme!, (value) { - return _then(_self.copyWith(iconTheme: value)); + return $StacBottomNavBarThemeDataCopyWith<$Res>( + _self.bottomNavigationBarTheme!, (value) { + return _then(_self.copyWith(bottomNavigationBarTheme: value)); }); } @@ -1528,13 +1638,14 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacIconThemeDataCopyWith<$Res>? get primaryIconTheme { - if (_self.primaryIconTheme == null) { + $StacBottomSheetThemeDataCopyWith<$Res>? get bottomSheetTheme { + if (_self.bottomSheetTheme == null) { return null; } - return $StacIconThemeDataCopyWith<$Res>(_self.primaryIconTheme!, (value) { - return _then(_self.copyWith(primaryIconTheme: value)); + return $StacBottomSheetThemeDataCopyWith<$Res>(_self.bottomSheetTheme!, + (value) { + return _then(_self.copyWith(bottomSheetTheme: value)); }); } @@ -1542,13 +1653,13 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacDialogThemeCopyWith<$Res>? get dialogTheme { - if (_self.dialogTheme == null) { + $StacCardThemeDataCopyWith<$Res>? get cardTheme { + if (_self.cardTheme == null) { return null; } - return $StacDialogThemeCopyWith<$Res>(_self.dialogTheme!, (value) { - return _then(_self.copyWith(dialogTheme: value)); + return $StacCardThemeDataCopyWith<$Res>(_self.cardTheme!, (value) { + return _then(_self.copyWith(cardTheme: value)); }); } @@ -1556,15 +1667,13 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacFloatingActionButtonThemeDataCopyWith<$Res>? - get floatingActionButtonTheme { - if (_self.floatingActionButtonTheme == null) { + $StacDialogThemeCopyWith<$Res>? get dialogTheme { + if (_self.dialogTheme == null) { return null; } - return $StacFloatingActionButtonThemeDataCopyWith<$Res>( - _self.floatingActionButtonTheme!, (value) { - return _then(_self.copyWith(floatingActionButtonTheme: value)); + return $StacDialogThemeCopyWith<$Res>(_self.dialogTheme!, (value) { + return _then(_self.copyWith(dialogTheme: value)); }); } @@ -1572,13 +1681,13 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacButtonStyleCopyWith<$Res>? get textButtonTheme { - if (_self.textButtonTheme == null) { + $StacButtonStyleCopyWith<$Res>? get elevatedButtonTheme { + if (_self.elevatedButtonTheme == null) { return null; } - return $StacButtonStyleCopyWith<$Res>(_self.textButtonTheme!, (value) { - return _then(_self.copyWith(textButtonTheme: value)); + return $StacButtonStyleCopyWith<$Res>(_self.elevatedButtonTheme!, (value) { + return _then(_self.copyWith(elevatedButtonTheme: value)); }); } @@ -1586,14 +1695,15 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacBottomAppBarThemeCopyWith<$Res>? get bottomAppBarTheme { - if (_self.bottomAppBarTheme == null) { + $StacFloatingActionButtonThemeDataCopyWith<$Res>? + get floatingActionButtonTheme { + if (_self.floatingActionButtonTheme == null) { return null; } - return $StacBottomAppBarThemeCopyWith<$Res>(_self.bottomAppBarTheme!, - (value) { - return _then(_self.copyWith(bottomAppBarTheme: value)); + return $StacFloatingActionButtonThemeDataCopyWith<$Res>( + _self.floatingActionButtonTheme!, (value) { + return _then(_self.copyWith(floatingActionButtonTheme: value)); }); } @@ -1601,14 +1711,13 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacBottomNavBarThemeDataCopyWith<$Res>? get bottomNavigationBarTheme { - if (_self.bottomNavigationBarTheme == null) { + $StacButtonStyleCopyWith<$Res>? get iconButtonTheme { + if (_self.iconButtonTheme == null) { return null; } - return $StacBottomNavBarThemeDataCopyWith<$Res>( - _self.bottomNavigationBarTheme!, (value) { - return _then(_self.copyWith(bottomNavigationBarTheme: value)); + return $StacButtonStyleCopyWith<$Res>(_self.iconButtonTheme!, (value) { + return _then(_self.copyWith(iconButtonTheme: value)); }); } @@ -1616,14 +1725,13 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacBottomSheetThemeDataCopyWith<$Res>? get bottomSheetTheme { - if (_self.bottomSheetTheme == null) { + $StacListTileThemeDataCopyWith<$Res>? get listTileTheme { + if (_self.listTileTheme == null) { return null; } - return $StacBottomSheetThemeDataCopyWith<$Res>(_self.bottomSheetTheme!, - (value) { - return _then(_self.copyWith(bottomSheetTheme: value)); + return $StacListTileThemeDataCopyWith<$Res>(_self.listTileTheme!, (value) { + return _then(_self.copyWith(listTileTheme: value)); }); } @@ -1631,13 +1739,14 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacCardThemeDataCopyWith<$Res>? get cardTheme { - if (_self.cardTheme == null) { + $StacNavigationBarThemeDataCopyWith<$Res>? get navigationBarTheme { + if (_self.navigationBarTheme == null) { return null; } - return $StacCardThemeDataCopyWith<$Res>(_self.cardTheme!, (value) { - return _then(_self.copyWith(cardTheme: value)); + return $StacNavigationBarThemeDataCopyWith<$Res>(_self.navigationBarTheme!, + (value) { + return _then(_self.copyWith(navigationBarTheme: value)); }); } @@ -1645,13 +1754,13 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacListTileThemeDataCopyWith<$Res>? get listTileTheme { - if (_self.listTileTheme == null) { + $StacButtonStyleCopyWith<$Res>? get outlinedButtonTheme { + if (_self.outlinedButtonTheme == null) { return null; } - return $StacListTileThemeDataCopyWith<$Res>(_self.listTileTheme!, (value) { - return _then(_self.copyWith(listTileTheme: value)); + return $StacButtonStyleCopyWith<$Res>(_self.outlinedButtonTheme!, (value) { + return _then(_self.copyWith(outlinedButtonTheme: value)); }); } @@ -1659,14 +1768,13 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacNavigationBarThemeDataCopyWith<$Res>? get navigationBarTheme { - if (_self.navigationBarTheme == null) { + $StacTabBarThemeDataCopyWith<$Res>? get tabBarTheme { + if (_self.tabBarTheme == null) { return null; } - return $StacNavigationBarThemeDataCopyWith<$Res>(_self.navigationBarTheme!, - (value) { - return _then(_self.copyWith(navigationBarTheme: value)); + return $StacTabBarThemeDataCopyWith<$Res>(_self.tabBarTheme!, (value) { + return _then(_self.copyWith(tabBarTheme: value)); }); } @@ -1674,13 +1782,13 @@ class __$StacThemeCopyWithImpl<$Res> implements _$StacThemeCopyWith<$Res> { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') - $StacTabBarThemeDataCopyWith<$Res>? get tabBarTheme { - if (_self.tabBarTheme == null) { + $StacButtonStyleCopyWith<$Res>? get textButtonTheme { + if (_self.textButtonTheme == null) { return null; } - return $StacTabBarThemeDataCopyWith<$Res>(_self.tabBarTheme!, (value) { - return _then(_self.copyWith(tabBarTheme: value)); + return $StacButtonStyleCopyWith<$Res>(_self.textButtonTheme!, (value) { + return _then(_self.copyWith(textButtonTheme: value)); }); } } diff --git a/packages/stac/lib/src/parsers/stac_theme/stac_theme.g.dart b/packages/stac/lib/src/parsers/theme/stac_theme/stac_theme.g.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_theme/stac_theme.g.dart rename to packages/stac/lib/src/parsers/theme/stac_theme/stac_theme.g.dart index 04665992..4bc657eb 100644 --- a/packages/stac/lib/src/parsers/stac_theme/stac_theme.g.dart +++ b/packages/stac/lib/src/parsers/theme/stac_theme/stac_theme.g.dart @@ -12,16 +12,18 @@ _StacTheme _$StacThemeFromJson(Map json) => _StacTheme( ? null : StacInputDecorationTheme.fromJson( json['inputDecorationTheme'] as Map), + materialTapTargetSize: $enumDecodeNullable( + _$MaterialTapTargetSizeEnumMap, json['materialTapTargetSize']), + platform: $enumDecodeNullable(_$TargetPlatformEnumMap, json['platform']), useMaterial3: json['useMaterial3'] as bool?, - brightness: $enumDecodeNullable(_$BrightnessEnumMap, json['brightness']), - canvasColor: json['canvasColor'] as String?, - cardColor: json['cardColor'] as String?, colorScheme: json['colorScheme'] == null ? null : StacColorScheme.fromJson( json['colorScheme'] as Map), + brightness: $enumDecodeNullable(_$BrightnessEnumMap, json['brightness']), colorSchemeSeed: json['colorSchemeSeed'] as String?, - dialogBackgroundColor: json['dialogBackgroundColor'] as String?, + canvasColor: json['canvasColor'] as String?, + cardColor: json['cardColor'] as String?, disabledColor: json['disabledColor'] as String?, dividerColor: json['dividerColor'] as String?, focusColor: json['focusColor'] as String?, @@ -45,22 +47,7 @@ _StacTheme _$StacThemeFromJson(Map json) => _StacTheme( fontFamilyFallback: (json['fontFamilyFallback'] as List?) ?.map((e) => e as String) .toList(), - appBarTheme: json['appBarTheme'] == null - ? null - : StacAppBarTheme.fromJson( - json['appBarTheme'] as Map), - elevatedButtonTheme: json['elevatedButtonTheme'] == null - ? null - : StacButtonStyle.fromJson( - json['elevatedButtonTheme'] as Map), - outlinedButtonTheme: json['outlinedButtonTheme'] == null - ? null - : StacButtonStyle.fromJson( - json['outlinedButtonTheme'] as Map), - iconButtonTheme: json['iconButtonTheme'] == null - ? null - : StacButtonStyle.fromJson( - json['iconButtonTheme'] as Map), + package: json['package'] as String?, iconTheme: json['iconTheme'] == null ? null : StacIconThemeData.fromJson( @@ -69,18 +56,10 @@ _StacTheme _$StacThemeFromJson(Map json) => _StacTheme( ? null : StacIconThemeData.fromJson( json['primaryIconTheme'] as Map), - dialogTheme: json['dialogTheme'] == null - ? null - : StacDialogTheme.fromJson( - json['dialogTheme'] as Map), - floatingActionButtonTheme: json['floatingActionButtonTheme'] == null - ? null - : StacFloatingActionButtonThemeData.fromJson( - json['floatingActionButtonTheme'] as Map), - textButtonTheme: json['textButtonTheme'] == null + appBarTheme: json['appBarTheme'] == null ? null - : StacButtonStyle.fromJson( - json['textButtonTheme'] as Map), + : StacAppBarTheme.fromJson( + json['appBarTheme'] as Map), bottomAppBarTheme: json['bottomAppBarTheme'] == null ? null : StacBottomAppBarTheme.fromJson( @@ -97,6 +76,22 @@ _StacTheme _$StacThemeFromJson(Map json) => _StacTheme( ? null : StacCardThemeData.fromJson( json['cardTheme'] as Map), + dialogTheme: json['dialogTheme'] == null + ? null + : StacDialogTheme.fromJson( + json['dialogTheme'] as Map), + elevatedButtonTheme: json['elevatedButtonTheme'] == null + ? null + : StacButtonStyle.fromJson( + json['elevatedButtonTheme'] as Map), + floatingActionButtonTheme: json['floatingActionButtonTheme'] == null + ? null + : StacFloatingActionButtonThemeData.fromJson( + json['floatingActionButtonTheme'] as Map), + iconButtonTheme: json['iconButtonTheme'] == null + ? null + : StacButtonStyle.fromJson( + json['iconButtonTheme'] as Map), listTileTheme: json['listTileTheme'] == null ? null : StacListTileThemeData.fromJson( @@ -105,23 +100,33 @@ _StacTheme _$StacThemeFromJson(Map json) => _StacTheme( ? null : StacNavigationBarThemeData.fromJson( json['navigationBarTheme'] as Map), + outlinedButtonTheme: json['outlinedButtonTheme'] == null + ? null + : StacButtonStyle.fromJson( + json['outlinedButtonTheme'] as Map), tabBarTheme: json['tabBarTheme'] == null ? null : StacTabBarThemeData.fromJson( json['tabBarTheme'] as Map), + textButtonTheme: json['textButtonTheme'] == null + ? null + : StacButtonStyle.fromJson( + json['textButtonTheme'] as Map), ); Map _$StacThemeToJson(_StacTheme instance) => { 'applyElevationOverlayColor': instance.applyElevationOverlayColor, 'inputDecorationTheme': instance.inputDecorationTheme, + 'materialTapTargetSize': + _$MaterialTapTargetSizeEnumMap[instance.materialTapTargetSize], + 'platform': _$TargetPlatformEnumMap[instance.platform], 'useMaterial3': instance.useMaterial3, + 'colorScheme': instance.colorScheme, 'brightness': _$BrightnessEnumMap[instance.brightness], + 'colorSchemeSeed': instance.colorSchemeSeed, 'canvasColor': instance.canvasColor, 'cardColor': instance.cardColor, - 'colorScheme': instance.colorScheme, - 'colorSchemeSeed': instance.colorSchemeSeed, - 'dialogBackgroundColor': instance.dialogBackgroundColor, 'disabledColor': instance.disabledColor, 'dividerColor': instance.dividerColor, 'focusColor': instance.focusColor, @@ -140,24 +145,39 @@ Map _$StacThemeToJson(_StacTheme instance) => 'unselectedWidgetColor': instance.unselectedWidgetColor, 'fontFamily': instance.fontFamily, 'fontFamilyFallback': instance.fontFamilyFallback, - 'appBarTheme': instance.appBarTheme, - 'elevatedButtonTheme': instance.elevatedButtonTheme, - 'outlinedButtonTheme': instance.outlinedButtonTheme, - 'iconButtonTheme': instance.iconButtonTheme, + 'package': instance.package, 'iconTheme': instance.iconTheme, 'primaryIconTheme': instance.primaryIconTheme, - 'dialogTheme': instance.dialogTheme, - 'floatingActionButtonTheme': instance.floatingActionButtonTheme, - 'textButtonTheme': instance.textButtonTheme, + 'appBarTheme': instance.appBarTheme, 'bottomAppBarTheme': instance.bottomAppBarTheme, 'bottomNavigationBarTheme': instance.bottomNavigationBarTheme, 'bottomSheetTheme': instance.bottomSheetTheme, 'cardTheme': instance.cardTheme, + 'dialogTheme': instance.dialogTheme, + 'elevatedButtonTheme': instance.elevatedButtonTheme, + 'floatingActionButtonTheme': instance.floatingActionButtonTheme, + 'iconButtonTheme': instance.iconButtonTheme, 'listTileTheme': instance.listTileTheme, 'navigationBarTheme': instance.navigationBarTheme, + 'outlinedButtonTheme': instance.outlinedButtonTheme, 'tabBarTheme': instance.tabBarTheme, + 'textButtonTheme': instance.textButtonTheme, }; +const _$MaterialTapTargetSizeEnumMap = { + MaterialTapTargetSize.padded: 'padded', + MaterialTapTargetSize.shrinkWrap: 'shrinkWrap', +}; + +const _$TargetPlatformEnumMap = { + TargetPlatform.android: 'android', + TargetPlatform.fuchsia: 'fuchsia', + TargetPlatform.iOS: 'iOS', + TargetPlatform.linux: 'linux', + TargetPlatform.macOS: 'macOS', + TargetPlatform.windows: 'windows', +}; + const _$BrightnessEnumMap = { Brightness.dark: 'dark', Brightness.light: 'light', diff --git a/packages/stac/lib/src/parsers/theme/themes.dart b/packages/stac/lib/src/parsers/theme/themes.dart new file mode 100644 index 00000000..52a937dc --- /dev/null +++ b/packages/stac/lib/src/parsers/theme/themes.dart @@ -0,0 +1,13 @@ +export 'package:stac/src/parsers/theme/stac_app_bar_theme/stac_app_bar_theme.dart'; +export 'package:stac/src/parsers/theme/stac_bottom_app_bar_theme/stac_bottom_app_bar_theme.dart'; +export 'package:stac/src/parsers/theme/stac_bottom_nav_bar_theme/stac_bottom_nav_bar_theme.dart'; +export 'package:stac/src/parsers/theme/stac_bottom_sheet_theme/stac_bottom_sheet_theme.dart'; +export 'package:stac/src/parsers/theme/stac_button_style/stac_button_style.dart'; +export 'package:stac/src/parsers/theme/stac_card_theme_data/stac_card_theme_data.dart'; +export 'package:stac/src/parsers/theme/stac_dialog_theme/stac_dialog_theme.dart'; +export 'package:stac/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.dart'; +export 'package:stac/src/parsers/theme/stac_input_decoration_theme/stac_input_decoration_theme.dart'; +export 'package:stac/src/parsers/theme/stac_material_color/stac_material_color.dart'; +export 'package:stac/src/parsers/theme/stac_navigation_bar_theme_data/stac_navigation_bar_theme_data.dart'; +export 'package:stac/src/parsers/theme/stac_tab_bar_theme_data/stac_tab_bar_theme_data.dart'; +export 'package:stac/src/parsers/theme/stac_theme/stac_theme.dart'; diff --git a/packages/stac/lib/src/parsers/stac_alert_dialog/stac_alert_dialog.dart b/packages/stac/lib/src/parsers/widgets/stac_alert_dialog/stac_alert_dialog.dart similarity index 78% rename from packages/stac/lib/src/parsers/stac_alert_dialog/stac_alert_dialog.dart rename to packages/stac/lib/src/parsers/widgets/stac_alert_dialog/stac_alert_dialog.dart index abc21f2b..6a1fc13b 100644 --- a/packages/stac/lib/src/parsers/stac_alert_dialog/stac_alert_dialog.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_alert_dialog/stac_alert_dialog.dart @@ -1,9 +1,11 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_shape_border/stac_shape_border.dart'; -import 'package:stac/stac.dart'; +import 'package:stac/src/parsers/widgets/stac_alignment_geometry/stac_alignment_geometry.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_shape_border/stac_shape_border.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; -export 'package:stac/src/parsers/stac_alert_dialog/stac_alert_dialog_parser.dart'; +export 'stac_alert_dialog_parser.dart'; part 'stac_alert_dialog.freezed.dart'; part 'stac_alert_dialog.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_alert_dialog/stac_alert_dialog.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_alert_dialog/stac_alert_dialog.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_alert_dialog/stac_alert_dialog.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_alert_dialog/stac_alert_dialog.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_alert_dialog/stac_alert_dialog.g.dart b/packages/stac/lib/src/parsers/widgets/stac_alert_dialog/stac_alert_dialog.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_alert_dialog/stac_alert_dialog.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_alert_dialog/stac_alert_dialog.g.dart diff --git a/packages/stac/lib/src/parsers/stac_alert_dialog/stac_alert_dialog_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_alert_dialog/stac_alert_dialog_parser.dart similarity index 82% rename from packages/stac/lib/src/parsers/stac_alert_dialog/stac_alert_dialog_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_alert_dialog/stac_alert_dialog_parser.dart index 473a4f32..5f015ea2 100644 --- a/packages/stac/lib/src/parsers/stac_alert_dialog/stac_alert_dialog_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_alert_dialog/stac_alert_dialog_parser.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_alert_dialog/stac_alert_dialog.dart'; -import 'package:stac/src/parsers/stac_alignment_geometry/stac_alignment_geometry.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_shape_border/stac_shape_border.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_alert_dialog/stac_alert_dialog.dart'; +import 'package:stac/src/parsers/widgets/stac_alignment_geometry/stac_alignment_geometry.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_shape_border/stac_shape_border.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_align/stac_align.dart b/packages/stac/lib/src/parsers/widgets/stac_align/stac_align.dart similarity index 78% rename from packages/stac/lib/src/parsers/stac_align/stac_align.dart rename to packages/stac/lib/src/parsers/widgets/stac_align/stac_align.dart index 15b0ea18..e679a17a 100644 --- a/packages/stac/lib/src/parsers/stac_align/stac_align.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_align/stac_align.dart @@ -1,7 +1,7 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/parsers.dart'; +import 'package:stac/src/parsers/widgets/stac_alignment_directional/stac_alignment_directional.dart'; -export 'package:stac/src/parsers/stac_align/stac_align_parser.dart'; +export 'stac_align_parser.dart'; part 'stac_align.freezed.dart'; part 'stac_align.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_align/stac_align.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_align/stac_align.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_align/stac_align.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_align/stac_align.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_align/stac_align.g.dart b/packages/stac/lib/src/parsers/widgets/stac_align/stac_align.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_align/stac_align.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_align/stac_align.g.dart diff --git a/packages/stac/lib/src/parsers/stac_align/stac_align_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_align/stac_align_parser.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_align/stac_align_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_align/stac_align_parser.dart index 7b897b72..db496131 100644 --- a/packages/stac/lib/src/parsers/stac_align/stac_align_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_align/stac_align_parser.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_align/stac_align.dart'; +import 'package:stac/src/parsers/widgets/stac_align/stac_align.dart'; + import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_alignment/stac_alignment.dart b/packages/stac/lib/src/parsers/widgets/stac_alignment/stac_alignment.dart similarity index 95% rename from packages/stac/lib/src/parsers/stac_alignment/stac_alignment.dart rename to packages/stac/lib/src/parsers/widgets/stac_alignment/stac_alignment.dart index a40c4e08..d1aad99c 100644 --- a/packages/stac/lib/src/parsers/stac_alignment/stac_alignment.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_alignment/stac_alignment.dart @@ -1,4 +1,4 @@ -import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; enum StacAlignment { topLeft, diff --git a/packages/stac/lib/src/parsers/stac_alignment_directional/stac_alignment_directional.dart b/packages/stac/lib/src/parsers/widgets/stac_alignment_directional/stac_alignment_directional.dart similarity index 96% rename from packages/stac/lib/src/parsers/stac_alignment_directional/stac_alignment_directional.dart rename to packages/stac/lib/src/parsers/widgets/stac_alignment_directional/stac_alignment_directional.dart index 6a2122c1..1f071113 100644 --- a/packages/stac/lib/src/parsers/stac_alignment_directional/stac_alignment_directional.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_alignment_directional/stac_alignment_directional.dart @@ -1,4 +1,4 @@ -import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; enum StacAlignmentDirectional { topStart, diff --git a/packages/stac/lib/src/parsers/stac_alignment_geometry/stac_alignment_geometry.dart b/packages/stac/lib/src/parsers/widgets/stac_alignment_geometry/stac_alignment_geometry.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_alignment_geometry/stac_alignment_geometry.dart rename to packages/stac/lib/src/parsers/widgets/stac_alignment_geometry/stac_alignment_geometry.dart diff --git a/packages/stac/lib/src/parsers/stac_alignment_geometry/stac_alignment_geometry.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_alignment_geometry/stac_alignment_geometry.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_alignment_geometry/stac_alignment_geometry.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_alignment_geometry/stac_alignment_geometry.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_alignment_geometry/stac_alignment_geometry.g.dart b/packages/stac/lib/src/parsers/widgets/stac_alignment_geometry/stac_alignment_geometry.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_alignment_geometry/stac_alignment_geometry.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_alignment_geometry/stac_alignment_geometry.g.dart diff --git a/packages/stac/lib/src/parsers/stac_app_bar/stac_app_bar.dart b/packages/stac/lib/src/parsers/widgets/stac_app_bar/stac_app_bar.dart similarity index 86% rename from packages/stac/lib/src/parsers/stac_app_bar/stac_app_bar.dart rename to packages/stac/lib/src/parsers/widgets/stac_app_bar/stac_app_bar.dart index d8b6764d..b237bff3 100644 --- a/packages/stac/lib/src/parsers/stac_app_bar/stac_app_bar.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_app_bar/stac_app_bar.dart @@ -1,7 +1,7 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; -export 'package:stac/src/parsers/stac_app_bar/stac_app_bar_parser.dart'; +export 'stac_app_bar_parser.dart'; part 'stac_app_bar.freezed.dart'; part 'stac_app_bar.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_app_bar/stac_app_bar.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_app_bar/stac_app_bar.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_app_bar/stac_app_bar.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_app_bar/stac_app_bar.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_app_bar/stac_app_bar.g.dart b/packages/stac/lib/src/parsers/widgets/stac_app_bar/stac_app_bar.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_app_bar/stac_app_bar.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_app_bar/stac_app_bar.g.dart diff --git a/packages/stac/lib/src/parsers/stac_app_bar/stac_app_bar_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_app_bar/stac_app_bar_parser.dart similarity index 91% rename from packages/stac/lib/src/parsers/stac_app_bar/stac_app_bar_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_app_bar/stac_app_bar_parser.dart index 76964b6d..05c6436e 100644 --- a/packages/stac/lib/src/parsers/stac_app_bar/stac_app_bar_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_app_bar/stac_app_bar_parser.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_app_bar/stac_app_bar.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_app_bar/stac_app_bar.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_aspect_ratio/stac_aspect_ratio.dart b/packages/stac/lib/src/parsers/widgets/stac_aspect_ratio/stac_aspect_ratio.dart similarity index 84% rename from packages/stac/lib/src/parsers/stac_aspect_ratio/stac_aspect_ratio.dart rename to packages/stac/lib/src/parsers/widgets/stac_aspect_ratio/stac_aspect_ratio.dart index ad4b8fdf..6caae5de 100644 --- a/packages/stac/lib/src/parsers/stac_aspect_ratio/stac_aspect_ratio.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_aspect_ratio/stac_aspect_ratio.dart @@ -1,6 +1,6 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -export 'package:stac/src/parsers/stac_aspect_ratio/stac_aspect_ratio_parser.dart'; +export 'stac_aspect_ratio_parser.dart'; part 'stac_aspect_ratio.freezed.dart'; part 'stac_aspect_ratio.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_aspect_ratio/stac_aspect_ratio.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_aspect_ratio/stac_aspect_ratio.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_aspect_ratio/stac_aspect_ratio.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_aspect_ratio/stac_aspect_ratio.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_aspect_ratio/stac_aspect_ratio.g.dart b/packages/stac/lib/src/parsers/widgets/stac_aspect_ratio/stac_aspect_ratio.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_aspect_ratio/stac_aspect_ratio.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_aspect_ratio/stac_aspect_ratio.g.dart diff --git a/packages/stac/lib/src/parsers/stac_aspect_ratio/stac_aspect_ratio_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_aspect_ratio/stac_aspect_ratio_parser.dart similarity index 88% rename from packages/stac/lib/src/parsers/stac_aspect_ratio/stac_aspect_ratio_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_aspect_ratio/stac_aspect_ratio_parser.dart index 71200792..23c51f18 100644 --- a/packages/stac/lib/src/parsers/stac_aspect_ratio/stac_aspect_ratio_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_aspect_ratio/stac_aspect_ratio_parser.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_aspect_ratio/stac_aspect_ratio.dart'; +import 'package:stac/src/parsers/widgets/stac_aspect_ratio/stac_aspect_ratio.dart'; + import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_auto_complete/stac_auto_complete.dart b/packages/stac/lib/src/parsers/widgets/stac_auto_complete/stac_auto_complete.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_auto_complete/stac_auto_complete.dart rename to packages/stac/lib/src/parsers/widgets/stac_auto_complete/stac_auto_complete.dart diff --git a/packages/stac/lib/src/parsers/stac_auto_complete/stac_auto_complete.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_auto_complete/stac_auto_complete.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_auto_complete/stac_auto_complete.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_auto_complete/stac_auto_complete.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_auto_complete/stac_auto_complete.g.dart b/packages/stac/lib/src/parsers/widgets/stac_auto_complete/stac_auto_complete.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_auto_complete/stac_auto_complete.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_auto_complete/stac_auto_complete.g.dart diff --git a/packages/stac/lib/src/parsers/stac_auto_complete/stac_auto_complete_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_auto_complete/stac_auto_complete_parser.dart similarity index 94% rename from packages/stac/lib/src/parsers/stac_auto_complete/stac_auto_complete_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_auto_complete/stac_auto_complete_parser.dart index 90315fa7..1f9adafe 100644 --- a/packages/stac/lib/src/parsers/stac_auto_complete/stac_auto_complete_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_auto_complete/stac_auto_complete_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_auto_complete/stac_auto_complete.dart'; +import 'stac_auto_complete.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_border/stac_border.dart b/packages/stac/lib/src/parsers/widgets/stac_border/stac_border.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_border/stac_border.dart rename to packages/stac/lib/src/parsers/widgets/stac_border/stac_border.dart diff --git a/packages/stac/lib/src/parsers/stac_border/stac_border.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_border/stac_border.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_border/stac_border.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_border/stac_border.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_border/stac_border.g.dart b/packages/stac/lib/src/parsers/widgets/stac_border/stac_border.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_border/stac_border.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_border/stac_border.g.dart diff --git a/packages/stac/lib/src/parsers/stac_border_radius/stac_border_radius.dart b/packages/stac/lib/src/parsers/widgets/stac_border_radius/stac_border_radius.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_border_radius/stac_border_radius.dart rename to packages/stac/lib/src/parsers/widgets/stac_border_radius/stac_border_radius.dart diff --git a/packages/stac/lib/src/parsers/stac_border_radius/stac_border_radius.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_border_radius/stac_border_radius.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_border_radius/stac_border_radius.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_border_radius/stac_border_radius.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_border_radius/stac_border_radius.g.dart b/packages/stac/lib/src/parsers/widgets/stac_border_radius/stac_border_radius.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_border_radius/stac_border_radius.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_border_radius/stac_border_radius.g.dart diff --git a/packages/stac/lib/src/parsers/stac_border_side/stac_border_side.dart b/packages/stac/lib/src/parsers/widgets/stac_border_side/stac_border_side.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_border_side/stac_border_side.dart rename to packages/stac/lib/src/parsers/widgets/stac_border_side/stac_border_side.dart diff --git a/packages/stac/lib/src/parsers/stac_border_side/stac_border_side.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_border_side/stac_border_side.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_border_side/stac_border_side.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_border_side/stac_border_side.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_border_side/stac_border_side.g.dart b/packages/stac/lib/src/parsers/widgets/stac_border_side/stac_border_side.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_border_side/stac_border_side.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_border_side/stac_border_side.g.dart diff --git a/packages/stac/lib/src/parsers/stac_bottom_navigation_bar/stac_bottom_navigation_bar.dart b/packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_bar/stac_bottom_navigation_bar.dart similarity index 79% rename from packages/stac/lib/src/parsers/stac_bottom_navigation_bar/stac_bottom_navigation_bar.dart rename to packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_bar/stac_bottom_navigation_bar.dart index def175fc..e288a84d 100644 --- a/packages/stac/lib/src/parsers/stac_bottom_navigation_bar/stac_bottom_navigation_bar.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_bar/stac_bottom_navigation_bar.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_navigation_bar_item/stac_bottom_navigation_bar_item.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_navigation_bar_item/stac_bottom_navigation_bar_item.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; -export 'package:stac/src/parsers/stac_bottom_navigation_bar/stac_bottom_navigation_bar_parser.dart'; +export 'stac_bottom_navigation_bar_parser.dart'; part 'stac_bottom_navigation_bar.freezed.dart'; part 'stac_bottom_navigation_bar.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_bottom_navigation_bar/stac_bottom_navigation_bar.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_bar/stac_bottom_navigation_bar.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_bottom_navigation_bar/stac_bottom_navigation_bar.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_bar/stac_bottom_navigation_bar.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_bottom_navigation_bar/stac_bottom_navigation_bar.g.dart b/packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_bar/stac_bottom_navigation_bar.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_bottom_navigation_bar/stac_bottom_navigation_bar.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_bar/stac_bottom_navigation_bar.g.dart diff --git a/packages/stac/lib/src/parsers/stac_bottom_navigation_bar/stac_bottom_navigation_bar_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_bar/stac_bottom_navigation_bar_parser.dart similarity index 75% rename from packages/stac/lib/src/parsers/stac_bottom_navigation_bar/stac_bottom_navigation_bar_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_bar/stac_bottom_navigation_bar_parser.dart index be3abb02..01f38274 100644 --- a/packages/stac/lib/src/parsers/stac_bottom_navigation_bar/stac_bottom_navigation_bar_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_bar/stac_bottom_navigation_bar_parser.dart @@ -1,6 +1,11 @@ import 'package:flutter/material.dart'; +import 'package:stac/src/parsers/widgets/stac_bottom_navigation_bar/stac_bottom_navigation_bar.dart'; +import 'package:stac/src/parsers/widgets/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.dart'; +import 'package:stac/src/parsers/widgets/stac_navigation_bar_item/stac_bottom_navigation_bar_item.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; -import 'package:stac/stac.dart'; +import 'package:stac_framework/stac_framework.dart'; class StacBottomNavigationBarParser extends StacParser { diff --git a/packages/stac/lib/src/parsers/stac_bottom_navigation_view/stac_bottom_navigation_view.dart b/packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_view/stac_bottom_navigation_view.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_bottom_navigation_view/stac_bottom_navigation_view.dart rename to packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_view/stac_bottom_navigation_view.dart diff --git a/packages/stac/lib/src/parsers/stac_bottom_navigation_view/stac_bottom_navigation_view.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_view/stac_bottom_navigation_view.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_bottom_navigation_view/stac_bottom_navigation_view.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_view/stac_bottom_navigation_view.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_bottom_navigation_view/stac_bottom_navigation_view.g.dart b/packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_view/stac_bottom_navigation_view.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_bottom_navigation_view/stac_bottom_navigation_view.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_view/stac_bottom_navigation_view.g.dart diff --git a/packages/stac/lib/src/parsers/stac_bottom_navigation_view/stac_bottom_navigation_view_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_view/stac_bottom_navigation_view_parser.dart similarity index 78% rename from packages/stac/lib/src/parsers/stac_bottom_navigation_view/stac_bottom_navigation_view_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_view/stac_bottom_navigation_view_parser.dart index a2e4fd67..50e7a631 100644 --- a/packages/stac/lib/src/parsers/stac_bottom_navigation_view/stac_bottom_navigation_view_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_bottom_navigation_view/stac_bottom_navigation_view_parser.dart @@ -1,10 +1,11 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_bottom_navigation_view/stac_bottom_navigation_view.dart'; -import 'package:stac/src/parsers/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller_parser.dart'; +import 'package:stac/src/parsers/widgets/stac_bottom_navigation_view/stac_bottom_navigation_view.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; +import '../stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.dart'; + class StacBottomNavigationViewParser extends StacParser { const StacBottomNavigationViewParser(); diff --git a/packages/stac/lib/src/parsers/stac_box_constraints/stac_box_constraints.dart b/packages/stac/lib/src/parsers/widgets/stac_box_constraints/stac_box_constraints.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_box_constraints/stac_box_constraints.dart rename to packages/stac/lib/src/parsers/widgets/stac_box_constraints/stac_box_constraints.dart diff --git a/packages/stac/lib/src/parsers/stac_box_constraints/stac_box_constraints.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_box_constraints/stac_box_constraints.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_box_constraints/stac_box_constraints.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_box_constraints/stac_box_constraints.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_box_constraints/stac_box_constraints.g.dart b/packages/stac/lib/src/parsers/widgets/stac_box_constraints/stac_box_constraints.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_box_constraints/stac_box_constraints.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_box_constraints/stac_box_constraints.g.dart diff --git a/packages/stac/lib/src/parsers/stac_box_decoration/stac_box_decoration.dart b/packages/stac/lib/src/parsers/widgets/stac_box_decoration/stac_box_decoration.dart similarity index 76% rename from packages/stac/lib/src/parsers/stac_box_decoration/stac_box_decoration.dart rename to packages/stac/lib/src/parsers/widgets/stac_box_decoration/stac_box_decoration.dart index 8766c0de..c5a4d27d 100644 --- a/packages/stac/lib/src/parsers/stac_box_decoration/stac_box_decoration.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_box_decoration/stac_box_decoration.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_border/stac_border.dart'; -import 'package:stac/src/parsers/stac_border_radius/stac_border_radius.dart'; -import 'package:stac/src/parsers/stac_box_shadow/stac_box_shadow.dart'; -import 'package:stac/src/parsers/stac_decoration_image/stac_decoration_image.dart'; -import 'package:stac/src/parsers/stac_gradient/stac_gradient.dart'; +import 'package:stac/src/parsers/widgets/stac_border/stac_border.dart'; +import 'package:stac/src/parsers/widgets/stac_border_radius/stac_border_radius.dart'; +import 'package:stac/src/parsers/widgets/stac_box_shadow/stac_box_shadow.dart'; +import 'package:stac/src/parsers/widgets/stac_decoration_image/stac_decoration_image.dart'; +import 'package:stac/src/parsers/widgets/stac_gradient/stac_gradient.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_box_decoration.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_box_decoration/stac_box_decoration.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_box_decoration/stac_box_decoration.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_box_decoration/stac_box_decoration.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_box_decoration/stac_box_decoration.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_box_decoration/stac_box_decoration.g.dart b/packages/stac/lib/src/parsers/widgets/stac_box_decoration/stac_box_decoration.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_box_decoration/stac_box_decoration.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_box_decoration/stac_box_decoration.g.dart diff --git a/packages/stac/lib/src/parsers/stac_box_shadow/stac_box_shadow.dart b/packages/stac/lib/src/parsers/widgets/stac_box_shadow/stac_box_shadow.dart similarity index 93% rename from packages/stac/lib/src/parsers/stac_box_shadow/stac_box_shadow.dart rename to packages/stac/lib/src/parsers/widgets/stac_box_shadow/stac_box_shadow.dart index 8e328536..d9714c2d 100644 --- a/packages/stac/lib/src/parsers/stac_box_shadow/stac_box_shadow.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_box_shadow/stac_box_shadow.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_offset/stac_offset.dart'; +import 'package:stac/src/parsers/widgets/stac_offset/stac_offset.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_box_shadow.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_box_shadow/stac_box_shadow.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_box_shadow/stac_box_shadow.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_box_shadow/stac_box_shadow.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_box_shadow/stac_box_shadow.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_box_shadow/stac_box_shadow.g.dart b/packages/stac/lib/src/parsers/widgets/stac_box_shadow/stac_box_shadow.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_box_shadow/stac_box_shadow.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_box_shadow/stac_box_shadow.g.dart diff --git a/packages/stac/lib/src/parsers/stac_card/stac_card.dart b/packages/stac/lib/src/parsers/widgets/stac_card/stac_card.dart similarity index 74% rename from packages/stac/lib/src/parsers/stac_card/stac_card.dart rename to packages/stac/lib/src/parsers/widgets/stac_card/stac_card.dart index 46e0f15f..a26de6d2 100644 --- a/packages/stac/lib/src/parsers/stac_card/stac_card.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_card/stac_card.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_shape_border/stac_shape_border.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_shape_border/stac_shape_border.dart'; -export 'package:stac/src/parsers/stac_card/stac_card_parser.dart'; +export 'stac_card_parser.dart'; part 'stac_card.freezed.dart'; part 'stac_card.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_card/stac_card.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_card/stac_card.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_card/stac_card.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_card/stac_card.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_card/stac_card.g.dart b/packages/stac/lib/src/parsers/widgets/stac_card/stac_card.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_card/stac_card.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_card/stac_card.g.dart diff --git a/packages/stac/lib/src/parsers/stac_card/stac_card_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_card/stac_card_parser.dart similarity index 81% rename from packages/stac/lib/src/parsers/stac_card/stac_card_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_card/stac_card_parser.dart index 8c65ab2a..f5856e13 100644 --- a/packages/stac/lib/src/parsers/stac_card/stac_card_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_card/stac_card_parser.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_card/stac_card.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_shape_border/stac_shape_border.dart'; +import 'package:stac/src/parsers/widgets/stac_card/stac_card.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_shape_border/stac_shape_border.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_carousel_view/stac_carousel_view.dart b/packages/stac/lib/src/parsers/widgets/stac_carousel_view/stac_carousel_view.dart similarity index 88% rename from packages/stac/lib/src/parsers/stac_carousel_view/stac_carousel_view.dart rename to packages/stac/lib/src/parsers/widgets/stac_carousel_view/stac_carousel_view.dart index 52f922ed..89ed7737 100644 --- a/packages/stac/lib/src/parsers/stac_carousel_view/stac_carousel_view.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_carousel_view/stac_carousel_view.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/stac.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; -export 'package:stac/src/parsers/stac_carousel_view/stac_carousel_view_parser.dart'; +export 'stac_carousel_view_parser.dart'; part 'stac_carousel_view.freezed.dart'; part 'stac_carousel_view.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_carousel_view/stac_carousel_view.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_carousel_view/stac_carousel_view.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_carousel_view/stac_carousel_view.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_carousel_view/stac_carousel_view.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_carousel_view/stac_carousel_view.g.dart b/packages/stac/lib/src/parsers/widgets/stac_carousel_view/stac_carousel_view.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_carousel_view/stac_carousel_view.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_carousel_view/stac_carousel_view.g.dart diff --git a/packages/stac/lib/src/parsers/stac_carousel_view/stac_carousel_view_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_carousel_view/stac_carousel_view_parser.dart similarity index 86% rename from packages/stac/lib/src/parsers/stac_carousel_view/stac_carousel_view_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_carousel_view/stac_carousel_view_parser.dart index ca35b572..cd37fe41 100644 --- a/packages/stac/lib/src/parsers/stac_carousel_view/stac_carousel_view_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_carousel_view/stac_carousel_view_parser.dart @@ -1,6 +1,11 @@ import 'package:flutter/material.dart'; +import 'package:stac/src/parsers/widgets/stac_carousel_view/stac_carousel_view.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; -import 'package:stac/stac.dart'; +import 'package:stac_framework/stac_framework.dart'; + +import '../../../framework/framework.dart'; class StacCarouselViewParser extends StacParser { const StacCarouselViewParser(); diff --git a/packages/stac/lib/src/parsers/stac_center/stac_center.dart b/packages/stac/lib/src/parsers/widgets/stac_center/stac_center.dart similarity index 85% rename from packages/stac/lib/src/parsers/stac_center/stac_center.dart rename to packages/stac/lib/src/parsers/widgets/stac_center/stac_center.dart index 9493ea6e..6ce3e0e0 100644 --- a/packages/stac/lib/src/parsers/stac_center/stac_center.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_center/stac_center.dart @@ -1,6 +1,6 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -export 'package:stac/src/parsers/stac_center/stac_center_parser.dart'; +export 'stac_center_parser.dart'; part 'stac_center.freezed.dart'; part 'stac_center.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_center/stac_center.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_center/stac_center.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_center/stac_center.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_center/stac_center.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_center/stac_center.g.dart b/packages/stac/lib/src/parsers/widgets/stac_center/stac_center.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_center/stac_center.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_center/stac_center.g.dart diff --git a/packages/stac/lib/src/parsers/stac_center/stac_center_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_center/stac_center_parser.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_center/stac_center_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_center/stac_center_parser.dart index 81a942b0..5c8ffc88 100644 --- a/packages/stac/lib/src/parsers/stac_center/stac_center_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_center/stac_center_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_center/stac_center.dart'; +import 'package:stac/src/parsers/widgets/stac_center/stac_center.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_check_box/stac_check_box.dart b/packages/stac/lib/src/parsers/widgets/stac_check_box/stac_check_box.dart similarity index 78% rename from packages/stac/lib/src/parsers/stac_check_box/stac_check_box.dart rename to packages/stac/lib/src/parsers/widgets/stac_check_box/stac_check_box.dart index 5eb5ba5d..7a2f97d6 100644 --- a/packages/stac/lib/src/parsers/stac_check_box/stac_check_box.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_check_box/stac_check_box.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_material_color/stac_material_color.dart'; -import 'package:stac/src/parsers/stac_mouse_cursor/stac_mouse_cursor.dart'; +import 'package:stac/src/parsers/theme/stac_material_color/stac_material_color.dart'; +import 'package:stac/src/parsers/widgets/stac_mouse_cursor/stac_mouse_cursor.dart'; -export 'package:stac/src/parsers/stac_check_box/stac_check_box_parser.dart'; +export 'stac_check_box_parser.dart'; part 'stac_check_box.freezed.dart'; part 'stac_check_box.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_check_box/stac_check_box.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_check_box/stac_check_box.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_check_box/stac_check_box.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_check_box/stac_check_box.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_check_box/stac_check_box.g.dart b/packages/stac/lib/src/parsers/widgets/stac_check_box/stac_check_box.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_check_box/stac_check_box.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_check_box/stac_check_box.g.dart diff --git a/packages/stac/lib/src/parsers/stac_check_box/stac_check_box_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_check_box/stac_check_box_parser.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_check_box/stac_check_box_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_check_box/stac_check_box_parser.dart index 7ea579ed..29502a78 100644 --- a/packages/stac/lib/src/parsers/stac_check_box/stac_check_box_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_check_box/stac_check_box_parser.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:stac/src/parsers/stac_check_box/stac_check_box.dart'; -import 'package:stac/src/parsers/stac_form/stac_form_scope.dart'; -import 'package:stac/src/parsers/stac_material_color/stac_material_color.dart'; +import 'package:stac/src/parsers/theme/stac_material_color/stac_material_color.dart'; +import 'package:stac/src/parsers/widgets/stac_check_box/stac_check_box.dart'; +import 'package:stac/src/parsers/widgets/stac_form/stac_form_scope.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_chip/stac_chip.dart b/packages/stac/lib/src/parsers/widgets/stac_chip/stac_chip.dart similarity index 65% rename from packages/stac/lib/src/parsers/stac_chip/stac_chip.dart rename to packages/stac/lib/src/parsers/widgets/stac_chip/stac_chip.dart index 8038b6a6..f5d268fb 100644 --- a/packages/stac/lib/src/parsers/stac_chip/stac_chip.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_chip/stac_chip.dart @@ -1,9 +1,12 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_box_constraints/stac_box_constraints.dart'; -import 'package:stac/src/parsers/stac_icon_theme_data/stac_icon_theme_data.dart'; -import 'package:stac/src/parsers/stac_rounded_rectangle_border/stac_rounded_rectangle_border.dart'; -import 'package:stac/stac.dart'; +import 'package:stac/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.dart'; +import 'package:stac/src/parsers/widgets/stac_border_side/stac_border_side.dart'; +import 'package:stac/src/parsers/widgets/stac_box_constraints/stac_box_constraints.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_rounded_rectangle_border/stac_rounded_rectangle_border.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_visual_density/stac_visual_density.dart'; export 'stac_chip_parser.dart'; diff --git a/packages/stac/lib/src/parsers/stac_chip/stac_chip.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_chip/stac_chip.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_chip/stac_chip.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_chip/stac_chip.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_chip/stac_chip.g.dart b/packages/stac/lib/src/parsers/widgets/stac_chip/stac_chip.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_chip/stac_chip.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_chip/stac_chip.g.dart diff --git a/packages/stac/lib/src/parsers/stac_chip/stac_chip_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_chip/stac_chip_parser.dart similarity index 82% rename from packages/stac/lib/src/parsers/stac_chip/stac_chip_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_chip/stac_chip_parser.dart index 431f9be1..64651881 100644 --- a/packages/stac/lib/src/parsers/stac_chip/stac_chip_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_chip/stac_chip_parser.dart @@ -1,7 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:stac/src/parsers/stac_box_constraints/stac_box_constraints.dart'; -import 'package:stac/src/parsers/stac_icon_theme_data/stac_icon_theme_data.dart'; -import 'package:stac/src/parsers/stac_rounded_rectangle_border/stac_rounded_rectangle_border.dart'; +import 'package:stac/src/parsers/widgets/stac_rounded_rectangle_border/stac_rounded_rectangle_border.dart'; +import 'package:stac/src/parsers/widgets/stac_visual_density/stac_visual_density.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac/stac.dart'; @@ -25,8 +24,8 @@ class StacChipParser extends StacParser { onDeleted: () => Stac.onCallFromJson(model.onDeleted, context), deleteIconColor: model.deleteIconColor.toColor(context), deleteButtonTooltipMessage: model.deleteButtonTooltipMessage, - side: model.side.parse(context), - shape: model.shape.parse(context), + side: model.side?.parse(context), + shape: model.shape?.parse(context), clipBehavior: model.clipBehavior, autofocus: model.autofocus, color: WidgetStateProperty.all(model.color.toColor(context)), diff --git a/packages/stac/lib/src/parsers/stac_circle_avatar/stac_circle_avatar.dart b/packages/stac/lib/src/parsers/widgets/stac_circle_avatar/stac_circle_avatar.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_circle_avatar/stac_circle_avatar.dart rename to packages/stac/lib/src/parsers/widgets/stac_circle_avatar/stac_circle_avatar.dart diff --git a/packages/stac/lib/src/parsers/stac_circle_avatar/stac_circle_avatar.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_circle_avatar/stac_circle_avatar.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_circle_avatar/stac_circle_avatar.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_circle_avatar/stac_circle_avatar.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_circle_avatar/stac_circle_avatar.g.dart b/packages/stac/lib/src/parsers/widgets/stac_circle_avatar/stac_circle_avatar.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_circle_avatar/stac_circle_avatar.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_circle_avatar/stac_circle_avatar.g.dart diff --git a/packages/stac/lib/src/parsers/stac_circle_avatar/stac_circle_avatar_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_circle_avatar/stac_circle_avatar_parser.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_circle_avatar/stac_circle_avatar_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_circle_avatar/stac_circle_avatar_parser.dart diff --git a/packages/stac/lib/src/parsers/stac_circular_progress_indicator/stac_circular_progress_indicator.dart b/packages/stac/lib/src/parsers/widgets/stac_circular_progress_indicator/stac_circular_progress_indicator.dart similarity index 86% rename from packages/stac/lib/src/parsers/stac_circular_progress_indicator/stac_circular_progress_indicator.dart rename to packages/stac/lib/src/parsers/widgets/stac_circular_progress_indicator/stac_circular_progress_indicator.dart index 01a0f878..b318a802 100644 --- a/packages/stac/lib/src/parsers/stac_circular_progress_indicator/stac_circular_progress_indicator.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_circular_progress_indicator/stac_circular_progress_indicator.dart @@ -2,7 +2,7 @@ import 'dart:ui'; import 'package:freezed_annotation/freezed_annotation.dart'; -export 'package:stac/src/parsers/stac_circular_progress_indicator/stac_circular_progress_indicator_parser.dart'; +export 'stac_circular_progress_indicator_parser.dart'; part 'stac_circular_progress_indicator.freezed.dart'; part 'stac_circular_progress_indicator.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_circular_progress_indicator/stac_circular_progress_indicator.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_circular_progress_indicator/stac_circular_progress_indicator.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_circular_progress_indicator/stac_circular_progress_indicator.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_circular_progress_indicator/stac_circular_progress_indicator.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_circular_progress_indicator/stac_circular_progress_indicator.g.dart b/packages/stac/lib/src/parsers/widgets/stac_circular_progress_indicator/stac_circular_progress_indicator.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_circular_progress_indicator/stac_circular_progress_indicator.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_circular_progress_indicator/stac_circular_progress_indicator.g.dart diff --git a/packages/stac/lib/src/parsers/stac_circular_progress_indicator/stac_circular_progress_indicator_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_circular_progress_indicator/stac_circular_progress_indicator_parser.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_circular_progress_indicator/stac_circular_progress_indicator_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_circular_progress_indicator/stac_circular_progress_indicator_parser.dart diff --git a/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.dart b/packages/stac/lib/src/parsers/widgets/stac_color_scheme/stac_color_scheme.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.dart rename to packages/stac/lib/src/parsers/widgets/stac_color_scheme/stac_color_scheme.dart diff --git a/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_color_scheme/stac_color_scheme.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_color_scheme/stac_color_scheme.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.g.dart b/packages/stac/lib/src/parsers/widgets/stac_color_scheme/stac_color_scheme.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_color_scheme/stac_color_scheme.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_color_scheme/stac_color_scheme.g.dart diff --git a/packages/stac/lib/src/parsers/stac_colored_box/stac_colored_box.dart b/packages/stac/lib/src/parsers/widgets/stac_colored_box/stac_colored_box.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_colored_box/stac_colored_box.dart rename to packages/stac/lib/src/parsers/widgets/stac_colored_box/stac_colored_box.dart diff --git a/packages/stac/lib/src/parsers/stac_colored_box/stac_colored_box.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_colored_box/stac_colored_box.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_colored_box/stac_colored_box.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_colored_box/stac_colored_box.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_colored_box/stac_colored_box.g.dart b/packages/stac/lib/src/parsers/widgets/stac_colored_box/stac_colored_box.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_colored_box/stac_colored_box.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_colored_box/stac_colored_box.g.dart diff --git a/packages/stac/lib/src/parsers/stac_colored_box/stac_colored_box_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_colored_box/stac_colored_box_parser.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_colored_box/stac_colored_box_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_colored_box/stac_colored_box_parser.dart index 48751816..bc051f28 100644 --- a/packages/stac/lib/src/parsers/stac_colored_box/stac_colored_box_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_colored_box/stac_colored_box_parser.dart @@ -1,10 +1,11 @@ import 'package:flutter/cupertino.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_colored_box/stac_colored_box.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; +import 'stac_colored_box.dart'; + class StacColoredBoxParser extends StacParser { const StacColoredBoxParser(); diff --git a/packages/stac/lib/src/parsers/stac_column/stac_column.dart b/packages/stac/lib/src/parsers/widgets/stac_column/stac_column.dart similarity index 91% rename from packages/stac/lib/src/parsers/stac_column/stac_column.dart rename to packages/stac/lib/src/parsers/widgets/stac_column/stac_column.dart index e135feec..6d0c70f1 100644 --- a/packages/stac/lib/src/parsers/stac_column/stac_column.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_column/stac_column.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -export 'package:stac/src/parsers/stac_column/stac_column_parser.dart'; +export 'stac_column_parser.dart'; part 'stac_column.freezed.dart'; part 'stac_column.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_column/stac_column.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_column/stac_column.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_column/stac_column.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_column/stac_column.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_column/stac_column.g.dart b/packages/stac/lib/src/parsers/widgets/stac_column/stac_column.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_column/stac_column.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_column/stac_column.g.dart diff --git a/packages/stac/lib/src/parsers/stac_column/stac_column_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_column/stac_column_parser.dart similarity index 93% rename from packages/stac/lib/src/parsers/stac_column/stac_column_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_column/stac_column_parser.dart index 03ef8e1b..8768caae 100644 --- a/packages/stac/lib/src/parsers/stac_column/stac_column_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_column/stac_column_parser.dart @@ -1,9 +1,10 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_column/stac_column.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; +import 'stac_column.dart'; + class StacColumnParser extends StacParser { const StacColumnParser(); diff --git a/packages/stac/lib/src/parsers/stac_container/stac_container.dart b/packages/stac/lib/src/parsers/widgets/stac_container/stac_container.dart similarity index 64% rename from packages/stac/lib/src/parsers/stac_container/stac_container.dart rename to packages/stac/lib/src/parsers/widgets/stac_container/stac_container.dart index 5d63179f..0ef0c1da 100644 --- a/packages/stac/lib/src/parsers/stac_container/stac_container.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_container/stac_container.dart @@ -1,12 +1,12 @@ import 'dart:ui'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_alignment/stac_alignment.dart'; -import 'package:stac/src/parsers/stac_box_constraints/stac_box_constraints.dart'; -import 'package:stac/src/parsers/stac_box_decoration/stac_box_decoration.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_alignment/stac_alignment.dart'; +import 'package:stac/src/parsers/widgets/stac_box_constraints/stac_box_constraints.dart'; +import 'package:stac/src/parsers/widgets/stac_box_decoration/stac_box_decoration.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; -export 'package:stac/src/parsers/stac_container/stac_container_parser.dart'; +export 'stac_container_parser.dart'; part 'stac_container.freezed.dart'; part 'stac_container.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_container/stac_container.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_container/stac_container.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_container/stac_container.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_container/stac_container.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_container/stac_container.g.dart b/packages/stac/lib/src/parsers/widgets/stac_container/stac_container.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_container/stac_container.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_container/stac_container.g.dart diff --git a/packages/stac/lib/src/parsers/stac_container/stac_container_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_container/stac_container_parser.dart similarity index 64% rename from packages/stac/lib/src/parsers/stac_container/stac_container_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_container/stac_container_parser.dart index b6076744..ef50f3f3 100644 --- a/packages/stac/lib/src/parsers/stac_container/stac_container_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_container/stac_container_parser.dart @@ -1,7 +1,13 @@ import 'package:flutter/cupertino.dart'; -import 'package:stac/src/parsers/stac_box_constraints/stac_box_constraints.dart'; +import 'package:stac/src/framework/framework.dart'; +import 'package:stac/src/parsers/widgets/stac_box_constraints/stac_box_constraints.dart'; +import 'package:stac/src/parsers/widgets/stac_box_decoration/stac_box_decoration.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; -import 'package:stac/stac.dart'; +import 'package:stac_framework/stac_framework.dart'; + +import 'stac_container.dart'; class StacContainerParser extends StacParser { const StacContainerParser(); @@ -18,7 +24,7 @@ class StacContainerParser extends StacParser { return Container( alignment: model.alignment?.value, padding: model.padding?.parse, - color: model.color.toColor(context), + color: model.color?.toColor(context), decoration: model.decoration?.parse(context), foregroundDecoration: model.foregroundDecoration?.parse(context), width: model.width, diff --git a/packages/stac/lib/src/parsers/stac_custom_scroll_view/stac_custom_scroll_view.dart b/packages/stac/lib/src/parsers/widgets/stac_custom_scroll_view/stac_custom_scroll_view.dart similarity index 91% rename from packages/stac/lib/src/parsers/stac_custom_scroll_view/stac_custom_scroll_view.dart rename to packages/stac/lib/src/parsers/widgets/stac_custom_scroll_view/stac_custom_scroll_view.dart index aa914536..219ca8c5 100644 --- a/packages/stac/lib/src/parsers/stac_custom_scroll_view/stac_custom_scroll_view.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_custom_scroll_view/stac_custom_scroll_view.dart @@ -3,6 +3,8 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:stac/src/utils/stac_scroll_physics.dart'; +export 'package:stac/src/parsers/widgets/stac_custom_scroll_view/stac_custom_scroll_view_parser.dart'; + part 'stac_custom_scroll_view.freezed.dart'; part 'stac_custom_scroll_view.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_custom_scroll_view/stac_custom_scroll_view.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_custom_scroll_view/stac_custom_scroll_view.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_custom_scroll_view/stac_custom_scroll_view.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_custom_scroll_view/stac_custom_scroll_view.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_custom_scroll_view/stac_custom_scroll_view.g.dart b/packages/stac/lib/src/parsers/widgets/stac_custom_scroll_view/stac_custom_scroll_view.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_custom_scroll_view/stac_custom_scroll_view.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_custom_scroll_view/stac_custom_scroll_view.g.dart diff --git a/packages/stac/lib/src/parsers/stac_custom_scroll_view/stac_custom_scroll_view_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_custom_scroll_view/stac_custom_scroll_view_parser.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_custom_scroll_view/stac_custom_scroll_view_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_custom_scroll_view/stac_custom_scroll_view_parser.dart diff --git a/packages/stac/lib/src/parsers/stac_decoration_image/stac_decoration_image.dart b/packages/stac/lib/src/parsers/widgets/stac_decoration_image/stac_decoration_image.dart similarity index 96% rename from packages/stac/lib/src/parsers/stac_decoration_image/stac_decoration_image.dart rename to packages/stac/lib/src/parsers/widgets/stac_decoration_image/stac_decoration_image.dart index c1690dce..827fd545 100644 --- a/packages/stac/lib/src/parsers/stac_decoration_image/stac_decoration_image.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_decoration_image/stac_decoration_image.dart @@ -2,7 +2,7 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_rect/stac_rect.dart'; +import 'package:stac/src/parsers/widgets/stac_rect/stac_rect.dart'; import 'package:stac/stac.dart'; part 'stac_decoration_image.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_decoration_image/stac_decoration_image.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_decoration_image/stac_decoration_image.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_decoration_image/stac_decoration_image.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_decoration_image/stac_decoration_image.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_decoration_image/stac_decoration_image.g.dart b/packages/stac/lib/src/parsers/widgets/stac_decoration_image/stac_decoration_image.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_decoration_image/stac_decoration_image.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_decoration_image/stac_decoration_image.g.dart diff --git a/packages/stac/lib/src/parsers/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.dart b/packages/stac/lib/src/parsers/widgets/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.dart rename to packages/stac/lib/src/parsers/widgets/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.dart diff --git a/packages/stac/lib/src/parsers/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.g.dart b/packages/stac/lib/src/parsers/widgets/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.g.dart diff --git a/packages/stac/lib/src/parsers/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller_parser.dart similarity index 96% rename from packages/stac/lib/src/parsers/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller_parser.dart index ded88e08..8a197170 100644 --- a/packages/stac/lib/src/parsers/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.dart'; +import 'package:stac/src/parsers/widgets/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.dart'; import 'package:stac/src/utils/log.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_default_tab_controller/stac_default_tab_controller.dart b/packages/stac/lib/src/parsers/widgets/stac_default_tab_controller/stac_default_tab_controller.dart similarity index 82% rename from packages/stac/lib/src/parsers/stac_default_tab_controller/stac_default_tab_controller.dart rename to packages/stac/lib/src/parsers/widgets/stac_default_tab_controller/stac_default_tab_controller.dart index 3e27e8bb..baf06a93 100644 --- a/packages/stac/lib/src/parsers/stac_default_tab_controller/stac_default_tab_controller.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_default_tab_controller/stac_default_tab_controller.dart @@ -1,6 +1,6 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -export 'package:stac/src/parsers/stac_default_tab_controller/stac_default_tab_controller_parser.dart'; +export 'package:stac/src/parsers/widgets/stac_default_tab_controller/stac_default_tab_controller_parser.dart'; part 'stac_default_tab_controller.freezed.dart'; part 'stac_default_tab_controller.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_default_tab_controller/stac_default_tab_controller.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_default_tab_controller/stac_default_tab_controller.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_default_tab_controller/stac_default_tab_controller.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_default_tab_controller/stac_default_tab_controller.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_default_tab_controller/stac_default_tab_controller.g.dart b/packages/stac/lib/src/parsers/widgets/stac_default_tab_controller/stac_default_tab_controller.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_default_tab_controller/stac_default_tab_controller.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_default_tab_controller/stac_default_tab_controller.g.dart diff --git a/packages/stac/lib/src/parsers/stac_default_tab_controller/stac_default_tab_controller_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_default_tab_controller/stac_default_tab_controller_parser.dart similarity index 88% rename from packages/stac/lib/src/parsers/stac_default_tab_controller/stac_default_tab_controller_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_default_tab_controller/stac_default_tab_controller_parser.dart index 1dfc562c..391ce1bc 100644 --- a/packages/stac/lib/src/parsers/stac_default_tab_controller/stac_default_tab_controller_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_default_tab_controller/stac_default_tab_controller_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_default_tab_controller/stac_default_tab_controller.dart'; +import 'package:stac/src/parsers/widgets/stac_default_tab_controller/stac_default_tab_controller.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_divider/stac_divider.dart b/packages/stac/lib/src/parsers/widgets/stac_divider/stac_divider.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_divider/stac_divider.dart rename to packages/stac/lib/src/parsers/widgets/stac_divider/stac_divider.dart diff --git a/packages/stac/lib/src/parsers/stac_divider/stac_divider.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_divider/stac_divider.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_divider/stac_divider.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_divider/stac_divider.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_divider/stac_divider.g.dart b/packages/stac/lib/src/parsers/widgets/stac_divider/stac_divider.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_divider/stac_divider.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_divider/stac_divider.g.dart diff --git a/packages/stac/lib/src/parsers/stac_divider/stac_divider_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_divider/stac_divider_parser.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_divider/stac_divider_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_divider/stac_divider_parser.dart diff --git a/packages/stac/lib/src/parsers/stac_dropdown_menu/stac_dropdown_menu.dart b/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu.dart similarity index 79% rename from packages/stac/lib/src/parsers/stac_dropdown_menu/stac_dropdown_menu.dart rename to packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu.dart index 668cfc56..9e58da6a 100644 --- a/packages/stac/lib/src/parsers/stac_dropdown_menu/stac_dropdown_menu.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu.dart @@ -1,16 +1,12 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:stac/src/parsers/parsers.dart'; -import 'package:stac/src/parsers/stac_dropdown_menu_entry/stac_dropdown_menu_entry.dart' - show StacDropdownMenuEntry; -import 'package:stac/src/parsers/stac_input_decoration_theme/stac_input_decoration_theme.dart'; -import 'package:stac/src/parsers/stac_offset/stac_offset.dart'; +import 'package:stac/src/parsers/widgets/stac_offset/stac_offset.dart'; import 'package:stac/src/utils/text_input_utils.dart'; -export 'package:stac/src/parsers/stac_container/stac_container_parser.dart'; +export 'stac_dropdown_menu_parser.dart'; part 'stac_dropdown_menu.freezed.dart'; - part 'stac_dropdown_menu.g.dart'; @freezed diff --git a/packages/stac/lib/src/parsers/stac_dropdown_menu/stac_dropdown_menu.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu.freezed.dart similarity index 98% rename from packages/stac/lib/src/parsers/stac_dropdown_menu/stac_dropdown_menu.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu.freezed.dart index b0527a94..bb3e771c 100644 --- a/packages/stac/lib/src/parsers/stac_dropdown_menu/stac_dropdown_menu.freezed.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu.freezed.dart @@ -34,15 +34,9 @@ mixin _$StacDropdownMenu { List get inputFormatters; StacOffset? get alignmentOffset; StacEdgeInsets? get expandedInsets; - bool? get requestFocusOnTap; // TextEditingController? controller; - dynamic get initialSelection; // ValueChanged? onSelected; -// FocusNode? focusNode; - List - get dropdownMenuEntries; // FilterCallback? filterCallback; -// SearchCallback? searchCallback, -// -// -// + bool? get requestFocusOnTap; + dynamic get initialSelection; + List get dropdownMenuEntries; DropdownMenuCloseBehavior? get closeBehavior; /// Create a copy of StacDropdownMenu @@ -487,14 +481,9 @@ class _StacDropdownMenu implements StacDropdownMenu { final StacEdgeInsets? expandedInsets; @override final bool? requestFocusOnTap; -// TextEditingController? controller; @override final dynamic initialSelection; -// ValueChanged? onSelected; -// FocusNode? focusNode; final List _dropdownMenuEntries; -// ValueChanged? onSelected; -// FocusNode? focusNode; @override @JsonKey() List get dropdownMenuEntries { @@ -504,11 +493,6 @@ class _StacDropdownMenu implements StacDropdownMenu { return EqualUnmodifiableListView(_dropdownMenuEntries); } -// FilterCallback? filterCallback; -// SearchCallback? searchCallback, -// -// -// @override @JsonKey() final DropdownMenuCloseBehavior? closeBehavior; diff --git a/packages/stac/lib/src/parsers/stac_dropdown_menu/stac_dropdown_menu.g.dart b/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_dropdown_menu/stac_dropdown_menu.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu.g.dart diff --git a/packages/stac/lib/src/parsers/stac_dropdown_menu/stac_dropdown_menu_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu_parser.dart similarity index 73% rename from packages/stac/lib/src/parsers/stac_dropdown_menu/stac_dropdown_menu_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu_parser.dart index ea9e4660..f6e4c4de 100644 --- a/packages/stac/lib/src/parsers/stac_dropdown_menu/stac_dropdown_menu_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu_parser.dart @@ -1,10 +1,14 @@ import 'package:flutter/material.dart'; -import 'package:stac/src/parsers/stac_dropdown_menu/stac_dropdown_menu.dart'; -import 'package:stac/src/parsers/stac_dropdown_menu_entry/stac_dropdown_menu_entry.dart'; -import 'package:stac/src/parsers/stac_input_decoration_theme/stac_input_decoration_theme.dart'; -import 'package:stac/src/parsers/stac_offset/stac_offset.dart'; +import 'package:stac/src/framework/framework.dart'; +import 'package:stac/src/parsers/theme/stac_input_decoration_theme/stac_input_decoration_theme.dart'; +import 'package:stac/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu.dart'; +import 'package:stac/src/parsers/widgets/stac_dropdown_menu_entry/stac_dropdown_menu_entry.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_input_formatters/stac_input_formatter.dart'; +import 'package:stac/src/parsers/widgets/stac_offset/stac_offset.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/widget_type.dart'; -import 'package:stac/stac.dart'; +import 'package:stac_framework/stac_framework.dart'; class StacDropdownMenuParser extends StacParser { const StacDropdownMenuParser(); @@ -67,9 +71,9 @@ class _DropDownMenuWidgetState extends State<_DropDownMenuWidget> { keyboardType: model.keyboardType?.value, textStyle: model.textStyle?.parse(context), textAlign: model.textAlign, - inputDecorationTheme: model.inputDecorationTheme.parse(context), + inputDecorationTheme: model.inputDecorationTheme?.parse(context), requestFocusOnTap: model.requestFocusOnTap, - expandedInsets: model.expandedInsets.parse, + expandedInsets: model.expandedInsets?.parse, alignmentOffset: model.alignmentOffset?.parse, inputFormatters: model.inputFormatters .map((StacInputFormatter formatter) => diff --git a/packages/stac/lib/src/parsers/stac_dropdown_menu_entry/stac_dropdown_menu_entry.dart b/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu_entry/stac_dropdown_menu_entry.dart similarity index 93% rename from packages/stac/lib/src/parsers/stac_dropdown_menu_entry/stac_dropdown_menu_entry.dart rename to packages/stac/lib/src/parsers/widgets/stac_dropdown_menu_entry/stac_dropdown_menu_entry.dart index 1aa97cbe..17db6f2e 100644 --- a/packages/stac/lib/src/parsers/stac_dropdown_menu_entry/stac_dropdown_menu_entry.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu_entry/stac_dropdown_menu_entry.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:stac/src/framework/framework.dart' show Stac; -import 'package:stac/src/parsers/parsers.dart'; +import 'package:stac/src/parsers/theme/stac_button_style/stac_button_style.dart'; part 'stac_dropdown_menu_entry.freezed.dart'; part 'stac_dropdown_menu_entry.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_dropdown_menu_entry/stac_dropdown_menu_entry.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu_entry/stac_dropdown_menu_entry.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_dropdown_menu_entry/stac_dropdown_menu_entry.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_dropdown_menu_entry/stac_dropdown_menu_entry.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_dropdown_menu_entry/stac_dropdown_menu_entry.g.dart b/packages/stac/lib/src/parsers/widgets/stac_dropdown_menu_entry/stac_dropdown_menu_entry.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_dropdown_menu_entry/stac_dropdown_menu_entry.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_dropdown_menu_entry/stac_dropdown_menu_entry.g.dart diff --git a/packages/stac/lib/src/parsers/stac_duration/stac_duration.dart b/packages/stac/lib/src/parsers/widgets/stac_duration/stac_duration.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_duration/stac_duration.dart rename to packages/stac/lib/src/parsers/widgets/stac_duration/stac_duration.dart diff --git a/packages/stac/lib/src/parsers/stac_duration/stac_duration.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_duration/stac_duration.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_duration/stac_duration.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_duration/stac_duration.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_duration/stac_duration.g.dart b/packages/stac/lib/src/parsers/widgets/stac_duration/stac_duration.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_duration/stac_duration.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_duration/stac_duration.g.dart diff --git a/packages/stac/lib/src/parsers/stac_dynamic_view/stac_dynamic_view.dart b/packages/stac/lib/src/parsers/widgets/stac_dynamic_view/stac_dynamic_view.dart similarity index 87% rename from packages/stac/lib/src/parsers/stac_dynamic_view/stac_dynamic_view.dart rename to packages/stac/lib/src/parsers/widgets/stac_dynamic_view/stac_dynamic_view.dart index e3422c72..b2ee6157 100644 --- a/packages/stac/lib/src/parsers/stac_dynamic_view/stac_dynamic_view.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_dynamic_view/stac_dynamic_view.dart @@ -1,5 +1,5 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/action_parsers/stac_network_request/stac_network_request.dart'; +import 'package:stac/src/parsers/actions/stac_network_request/stac_network_request.dart'; export 'stac_dynamic_view_parser.dart'; diff --git a/packages/stac/lib/src/parsers/stac_dynamic_view/stac_dynamic_view.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_dynamic_view/stac_dynamic_view.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_dynamic_view/stac_dynamic_view.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_dynamic_view/stac_dynamic_view.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_dynamic_view/stac_dynamic_view.g.dart b/packages/stac/lib/src/parsers/widgets/stac_dynamic_view/stac_dynamic_view.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_dynamic_view/stac_dynamic_view.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_dynamic_view/stac_dynamic_view.g.dart diff --git a/packages/stac/lib/src/parsers/stac_dynamic_view/stac_dynamic_view_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_dynamic_view/stac_dynamic_view_parser.dart similarity index 98% rename from packages/stac/lib/src/parsers/stac_dynamic_view/stac_dynamic_view_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_dynamic_view/stac_dynamic_view_parser.dart index 452aacf4..a8e8af24 100644 --- a/packages/stac/lib/src/parsers/stac_dynamic_view/stac_dynamic_view_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_dynamic_view/stac_dynamic_view_parser.dart @@ -1,8 +1,9 @@ import 'dart:convert'; + import 'package:dio/dio.dart'; import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_dynamic_view/stac_dynamic_view.dart'; +import 'package:stac/src/parsers/widgets/stac_dynamic_view/stac_dynamic_view.dart'; import 'package:stac/src/services/stac_network_service.dart'; import 'package:stac/src/utils/log.dart'; import 'package:stac/src/utils/widget_type.dart'; diff --git a/packages/stac/lib/src/parsers/stac_edge_insets/stac_edge_insets.dart b/packages/stac/lib/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_edge_insets/stac_edge_insets.dart rename to packages/stac/lib/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart diff --git a/packages/stac/lib/src/parsers/stac_edge_insets/stac_edge_insets.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_edge_insets/stac_edge_insets.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_edge_insets/stac_edge_insets.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_edge_insets/stac_edge_insets.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_edge_insets/stac_edge_insets.g.dart b/packages/stac/lib/src/parsers/widgets/stac_edge_insets/stac_edge_insets.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_edge_insets/stac_edge_insets.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_edge_insets/stac_edge_insets.g.dart diff --git a/packages/stac/lib/src/parsers/stac_elevated_button/stac_elevated_button.dart b/packages/stac/lib/src/parsers/widgets/stac_elevated_button/stac_elevated_button.dart similarity index 81% rename from packages/stac/lib/src/parsers/stac_elevated_button/stac_elevated_button.dart rename to packages/stac/lib/src/parsers/widgets/stac_elevated_button/stac_elevated_button.dart index 39d15949..c5eec3cb 100644 --- a/packages/stac/lib/src/parsers/stac_elevated_button/stac_elevated_button.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_elevated_button/stac_elevated_button.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_button_style/stac_button_style.dart'; +import 'package:stac/src/parsers/theme/stac_button_style/stac_button_style.dart'; -export 'package:stac/src/parsers/stac_elevated_button/stac_elevated_button_parser.dart'; +export 'stac_elevated_button_parser.dart'; part 'stac_elevated_button.freezed.dart'; part 'stac_elevated_button.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_elevated_button/stac_elevated_button.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_elevated_button/stac_elevated_button.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_elevated_button/stac_elevated_button.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_elevated_button/stac_elevated_button.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_elevated_button/stac_elevated_button.g.dart b/packages/stac/lib/src/parsers/widgets/stac_elevated_button/stac_elevated_button.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_elevated_button/stac_elevated_button.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_elevated_button/stac_elevated_button.g.dart diff --git a/packages/stac/lib/src/parsers/stac_elevated_button/stac_elevated_button_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_elevated_button/stac_elevated_button_parser.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_elevated_button/stac_elevated_button_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_elevated_button/stac_elevated_button_parser.dart index 824eaa3b..88f5e7e1 100644 --- a/packages/stac/lib/src/parsers/stac_elevated_button/stac_elevated_button_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_elevated_button/stac_elevated_button_parser.dart @@ -1,9 +1,11 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/parsers.dart'; +import 'package:stac/src/parsers/theme/stac_button_style/stac_button_style.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; +import 'stac_elevated_button.dart'; + class StacElevatedButtonParser extends StacParser { const StacElevatedButtonParser(); diff --git a/packages/stac/lib/src/parsers/stac_expanded/stac_expanded.dart b/packages/stac/lib/src/parsers/widgets/stac_expanded/stac_expanded.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_expanded/stac_expanded.dart rename to packages/stac/lib/src/parsers/widgets/stac_expanded/stac_expanded.dart diff --git a/packages/stac/lib/src/parsers/stac_expanded/stac_expanded.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_expanded/stac_expanded.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_expanded/stac_expanded.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_expanded/stac_expanded.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_expanded/stac_expanded.g.dart b/packages/stac/lib/src/parsers/widgets/stac_expanded/stac_expanded.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_expanded/stac_expanded.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_expanded/stac_expanded.g.dart diff --git a/packages/stac/lib/src/parsers/stac_expanded/stac_expanded_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_expanded/stac_expanded_parser.dart similarity index 89% rename from packages/stac/lib/src/parsers/stac_expanded/stac_expanded_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_expanded/stac_expanded_parser.dart index 11ca5512..6981296e 100644 --- a/packages/stac/lib/src/parsers/stac_expanded/stac_expanded_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_expanded/stac_expanded_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_expanded/stac_expanded.dart'; +import 'package:stac/src/parsers/widgets/stac_expanded/stac_expanded.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_filled_button/stac_filled_button.dart b/packages/stac/lib/src/parsers/widgets/stac_filled_button/stac_filled_button.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_filled_button/stac_filled_button.dart rename to packages/stac/lib/src/parsers/widgets/stac_filled_button/stac_filled_button.dart index cf69c6f8..29e14828 100644 --- a/packages/stac/lib/src/parsers/stac_filled_button/stac_filled_button.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_filled_button/stac_filled_button.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import "package:stac/src/parsers/stac_button_style/stac_button_style.dart"; +import 'package:stac/src/parsers/theme/stac_button_style/stac_button_style.dart'; export 'stac_filled_button_parser.dart'; diff --git a/packages/stac/lib/src/parsers/stac_filled_button/stac_filled_button.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_filled_button/stac_filled_button.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_filled_button/stac_filled_button.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_filled_button/stac_filled_button.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_filled_button/stac_filled_button.g.dart b/packages/stac/lib/src/parsers/widgets/stac_filled_button/stac_filled_button.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_filled_button/stac_filled_button.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_filled_button/stac_filled_button.g.dart diff --git a/packages/stac/lib/src/parsers/stac_filled_button/stac_filled_button_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_filled_button/stac_filled_button_parser.dart similarity index 82% rename from packages/stac/lib/src/parsers/stac_filled_button/stac_filled_button_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_filled_button/stac_filled_button_parser.dart index 3e2fb866..ca2984dc 100644 --- a/packages/stac/lib/src/parsers/stac_filled_button/stac_filled_button_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_filled_button/stac_filled_button_parser.dart @@ -1,6 +1,10 @@ import 'package:flutter/material.dart'; +import 'package:stac/src/framework/framework.dart'; +import 'package:stac/src/parsers/theme/stac_button_style/stac_button_style.dart'; import 'package:stac/src/utils/widget_type.dart'; -import 'package:stac/stac.dart'; +import 'package:stac_framework/stac_framework.dart'; + +import 'stac_filled_button.dart'; class StacFilledButtonParser extends StacParser { const StacFilledButtonParser(); diff --git a/packages/stac/lib/src/parsers/stac_fitted_box/stac_fitted_box.dart b/packages/stac/lib/src/parsers/widgets/stac_fitted_box/stac_fitted_box.dart similarity index 89% rename from packages/stac/lib/src/parsers/stac_fitted_box/stac_fitted_box.dart rename to packages/stac/lib/src/parsers/widgets/stac_fitted_box/stac_fitted_box.dart index 019a1506..976d8402 100644 --- a/packages/stac/lib/src/parsers/stac_fitted_box/stac_fitted_box.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_fitted_box/stac_fitted_box.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:stac/src/parsers/parsers.dart'; -export 'package:stac/src/parsers/stac_fitted_box/stac_fitted_box_parser.dart'; +export 'stac_fitted_box_parser.dart'; part 'stac_fitted_box.freezed.dart'; part 'stac_fitted_box.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_fitted_box/stac_fitted_box.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_fitted_box/stac_fitted_box.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_fitted_box/stac_fitted_box.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_fitted_box/stac_fitted_box.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_fitted_box/stac_fitted_box.g.dart b/packages/stac/lib/src/parsers/widgets/stac_fitted_box/stac_fitted_box.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_fitted_box/stac_fitted_box.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_fitted_box/stac_fitted_box.g.dart diff --git a/packages/stac/lib/src/parsers/stac_fitted_box/stac_fitted_box_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_fitted_box/stac_fitted_box_parser.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_fitted_box/stac_fitted_box_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_fitted_box/stac_fitted_box_parser.dart index 5db4c6ff..eaf4b272 100644 --- a/packages/stac/lib/src/parsers/stac_fitted_box/stac_fitted_box_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_fitted_box/stac_fitted_box_parser.dart @@ -1,9 +1,10 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_fitted_box/stac_fitted_box.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; +import 'stac_fitted_box.dart'; + class StacFittedBoxParser extends StacParser { const StacFittedBoxParser(); diff --git a/packages/stac/lib/src/parsers/stac_flexible/stac_flexible.dart b/packages/stac/lib/src/parsers/widgets/stac_flexible/stac_flexible.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_flexible/stac_flexible.dart rename to packages/stac/lib/src/parsers/widgets/stac_flexible/stac_flexible.dart diff --git a/packages/stac/lib/src/parsers/stac_flexible/stac_flexible.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_flexible/stac_flexible.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_flexible/stac_flexible.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_flexible/stac_flexible.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_flexible/stac_flexible.g.dart b/packages/stac/lib/src/parsers/widgets/stac_flexible/stac_flexible.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_flexible/stac_flexible.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_flexible/stac_flexible.g.dart diff --git a/packages/stac/lib/src/parsers/stac_flexible/stac_flexible_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_flexible/stac_flexible_parser.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_flexible/stac_flexible_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_flexible/stac_flexible_parser.dart diff --git a/packages/stac/lib/src/parsers/stac_floating_action_button/stac_floating_action_button.dart b/packages/stac/lib/src/parsers/widgets/stac_floating_action_button/stac_floating_action_button.dart similarity index 86% rename from packages/stac/lib/src/parsers/stac_floating_action_button/stac_floating_action_button.dart rename to packages/stac/lib/src/parsers/widgets/stac_floating_action_button/stac_floating_action_button.dart index a3ee9135..28843a38 100644 --- a/packages/stac/lib/src/parsers/stac_floating_action_button/stac_floating_action_button.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_floating_action_button/stac_floating_action_button.dart @@ -1,8 +1,8 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/button_utils.dart'; -export 'package:stac/src/parsers/stac_floating_action_button/stac_floating_action_button_parser.dart'; +export 'stac_floating_action_button_parser.dart'; part 'stac_floating_action_button.freezed.dart'; part 'stac_floating_action_button.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_floating_action_button/stac_floating_action_button.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_floating_action_button/stac_floating_action_button.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_floating_action_button/stac_floating_action_button.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_floating_action_button/stac_floating_action_button.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_floating_action_button/stac_floating_action_button.g.dart b/packages/stac/lib/src/parsers/widgets/stac_floating_action_button/stac_floating_action_button.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_floating_action_button/stac_floating_action_button.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_floating_action_button/stac_floating_action_button.g.dart diff --git a/packages/stac/lib/src/parsers/stac_floating_action_button/stac_floating_action_button_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_floating_action_button/stac_floating_action_button_parser.dart similarity index 96% rename from packages/stac/lib/src/parsers/stac_floating_action_button/stac_floating_action_button_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_floating_action_button/stac_floating_action_button_parser.dart index 56326217..74386b90 100644 --- a/packages/stac/lib/src/parsers/stac_floating_action_button/stac_floating_action_button_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_floating_action_button/stac_floating_action_button_parser.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_floating_action_button/stac_floating_action_button.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_floating_action_button/stac_floating_action_button.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/button_utils.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; diff --git a/packages/stac/lib/src/parsers/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.dart b/packages/stac/lib/src/parsers/widgets/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.dart similarity index 92% rename from packages/stac/lib/src/parsers/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.dart rename to packages/stac/lib/src/parsers/widgets/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.dart index feb4c597..b667e86f 100644 --- a/packages/stac/lib/src/parsers/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_floating_action_button_theme_data.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.g.dart b/packages/stac/lib/src/parsers/widgets/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.g.dart diff --git a/packages/stac/lib/src/parsers/stac_font_weight/stac_font_weight.dart b/packages/stac/lib/src/parsers/widgets/stac_font_weight/stac_font_weight.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_font_weight/stac_font_weight.dart rename to packages/stac/lib/src/parsers/widgets/stac_font_weight/stac_font_weight.dart diff --git a/packages/stac/lib/src/parsers/stac_form/stac_form.dart b/packages/stac/lib/src/parsers/widgets/stac_form/stac_form.dart similarity index 86% rename from packages/stac/lib/src/parsers/stac_form/stac_form.dart rename to packages/stac/lib/src/parsers/widgets/stac_form/stac_form.dart index ce5f8dce..3b1f2713 100644 --- a/packages/stac/lib/src/parsers/stac_form/stac_form.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_form/stac_form.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -export 'package:stac/src/parsers/stac_form/stac_form_parser.dart'; +export 'stac_form_parser.dart'; part 'stac_form.freezed.dart'; part 'stac_form.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_form/stac_form.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_form/stac_form.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_form/stac_form.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_form/stac_form.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_form/stac_form.g.dart b/packages/stac/lib/src/parsers/widgets/stac_form/stac_form.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_form/stac_form.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_form/stac_form.g.dart diff --git a/packages/stac/lib/src/parsers/stac_form/stac_form_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_form/stac_form_parser.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_form/stac_form_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_form/stac_form_parser.dart index 51741dc1..cfec091a 100644 --- a/packages/stac/lib/src/parsers/stac_form/stac_form_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_form/stac_form_parser.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_form/stac_form.dart'; -import 'package:stac/src/parsers/stac_form/stac_form_scope.dart'; +import 'package:stac/src/parsers/widgets/stac_form/stac_form.dart'; +import 'package:stac/src/parsers/widgets/stac_form/stac_form_scope.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_form/stac_form_scope.dart b/packages/stac/lib/src/parsers/widgets/stac_form/stac_form_scope.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_form/stac_form_scope.dart rename to packages/stac/lib/src/parsers/widgets/stac_form/stac_form_scope.dart diff --git a/packages/stac/lib/src/parsers/stac_form_field_validator/stac_form_validator.dart b/packages/stac/lib/src/parsers/widgets/stac_form_field_validator/stac_form_validator.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_form_field_validator/stac_form_validator.dart rename to packages/stac/lib/src/parsers/widgets/stac_form_field_validator/stac_form_validator.dart diff --git a/packages/stac/lib/src/parsers/stac_form_field_validator/stac_form_validator.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_form_field_validator/stac_form_validator.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_form_field_validator/stac_form_validator.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_form_field_validator/stac_form_validator.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_form_field_validator/stac_form_validator.g.dart b/packages/stac/lib/src/parsers/widgets/stac_form_field_validator/stac_form_validator.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_form_field_validator/stac_form_validator.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_form_field_validator/stac_form_validator.g.dart diff --git a/packages/stac/lib/src/parsers/stac_fractionally_sized_box/stac_fractionally_sized_box.dart b/packages/stac/lib/src/parsers/widgets/stac_fractionally_sized_box/stac_fractionally_sized_box.dart similarity index 85% rename from packages/stac/lib/src/parsers/stac_fractionally_sized_box/stac_fractionally_sized_box.dart rename to packages/stac/lib/src/parsers/widgets/stac_fractionally_sized_box/stac_fractionally_sized_box.dart index e862a8cb..aac0c33e 100644 --- a/packages/stac/lib/src/parsers/stac_fractionally_sized_box/stac_fractionally_sized_box.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_fractionally_sized_box/stac_fractionally_sized_box.dart @@ -1,7 +1,7 @@ import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:stac/stac.dart'; -export 'package:stac/src/parsers/stac_fractionally_sized_box/stac_fractionally_sized_box_parser.dart'; +export 'stac_fractionally_sized_box_parser.dart'; part 'stac_fractionally_sized_box.freezed.dart'; part 'stac_fractionally_sized_box.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_fractionally_sized_box/stac_fractionally_sized_box.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_fractionally_sized_box/stac_fractionally_sized_box.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_fractionally_sized_box/stac_fractionally_sized_box.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_fractionally_sized_box/stac_fractionally_sized_box.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_fractionally_sized_box/stac_fractionally_sized_box.g.dart b/packages/stac/lib/src/parsers/widgets/stac_fractionally_sized_box/stac_fractionally_sized_box.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_fractionally_sized_box/stac_fractionally_sized_box.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_fractionally_sized_box/stac_fractionally_sized_box.g.dart diff --git a/packages/stac/lib/src/parsers/stac_fractionally_sized_box/stac_fractionally_sized_box_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_fractionally_sized_box/stac_fractionally_sized_box_parser.dart similarity index 89% rename from packages/stac/lib/src/parsers/stac_fractionally_sized_box/stac_fractionally_sized_box_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_fractionally_sized_box/stac_fractionally_sized_box_parser.dart index 3c7e7913..d5688889 100644 --- a/packages/stac/lib/src/parsers/stac_fractionally_sized_box/stac_fractionally_sized_box_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_fractionally_sized_box/stac_fractionally_sized_box_parser.dart @@ -1,9 +1,10 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_fractionally_sized_box/stac_fractionally_sized_box.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; +import 'stac_fractionally_sized_box.dart'; + class StacFractionallySizedBoxParser extends StacParser { const StacFractionallySizedBoxParser(); diff --git a/packages/stac/lib/src/parsers/stac_gradient/stac_gradient.dart b/packages/stac/lib/src/parsers/widgets/stac_gradient/stac_gradient.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_gradient/stac_gradient.dart rename to packages/stac/lib/src/parsers/widgets/stac_gradient/stac_gradient.dart diff --git a/packages/stac/lib/src/parsers/stac_gradient/stac_gradient.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_gradient/stac_gradient.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_gradient/stac_gradient.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_gradient/stac_gradient.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_gradient/stac_gradient.g.dart b/packages/stac/lib/src/parsers/widgets/stac_gradient/stac_gradient.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_gradient/stac_gradient.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_gradient/stac_gradient.g.dart diff --git a/packages/stac/lib/src/parsers/stac_grid_view/stac_grid_view.dart b/packages/stac/lib/src/parsers/widgets/stac_grid_view/stac_grid_view.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_grid_view/stac_grid_view.dart rename to packages/stac/lib/src/parsers/widgets/stac_grid_view/stac_grid_view.dart diff --git a/packages/stac/lib/src/parsers/stac_grid_view/stac_grid_view.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_grid_view/stac_grid_view.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_grid_view/stac_grid_view.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_grid_view/stac_grid_view.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_grid_view/stac_grid_view.g.dart b/packages/stac/lib/src/parsers/widgets/stac_grid_view/stac_grid_view.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_grid_view/stac_grid_view.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_grid_view/stac_grid_view.g.dart diff --git a/packages/stac/lib/src/parsers/stac_grid_view/stac_grid_view_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_grid_view/stac_grid_view_parser.dart similarity index 91% rename from packages/stac/lib/src/parsers/stac_grid_view/stac_grid_view_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_grid_view/stac_grid_view_parser.dart index 4fabbdc3..fb49c171 100644 --- a/packages/stac/lib/src/parsers/stac_grid_view/stac_grid_view_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_grid_view/stac_grid_view_parser.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_grid_view/stac_grid_view.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_grid_view/stac_grid_view.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_hero/stac_hero.dart b/packages/stac/lib/src/parsers/widgets/stac_hero/stac_hero.dart similarity index 79% rename from packages/stac/lib/src/parsers/stac_hero/stac_hero.dart rename to packages/stac/lib/src/parsers/widgets/stac_hero/stac_hero.dart index 007ea070..5a130fa3 100644 --- a/packages/stac/lib/src/parsers/stac_hero/stac_hero.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_hero/stac_hero.dart @@ -1,6 +1,7 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_rect_tween/stac_rect_tween.dart'; -export 'package:stac/src/parsers/stac_hero/stac_hero_parser.dart'; +import 'package:stac/src/parsers/widgets/stac_rect_tween/stac_rect_tween.dart'; + +export 'stac_hero_parser.dart'; part 'stac_hero.freezed.dart'; part 'stac_hero.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_hero/stac_hero.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_hero/stac_hero.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_hero/stac_hero.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_hero/stac_hero.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_hero/stac_hero.g.dart b/packages/stac/lib/src/parsers/widgets/stac_hero/stac_hero.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_hero/stac_hero.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_hero/stac_hero.g.dart diff --git a/packages/stac/lib/src/parsers/stac_hero/stac_hero_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_hero/stac_hero_parser.dart similarity index 94% rename from packages/stac/lib/src/parsers/stac_hero/stac_hero_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_hero/stac_hero_parser.dart index 3a59015f..398fc5b0 100644 --- a/packages/stac/lib/src/parsers/stac_hero/stac_hero_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_hero/stac_hero_parser.dart @@ -1,4 +1,5 @@ import 'package:flutter/widgets.dart'; +import 'package:stac/src/parsers/widgets/stac_rect_tween/stac_rect_tween.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac/stac.dart'; diff --git a/packages/stac/lib/src/parsers/stac_icon/stac_icon.dart b/packages/stac/lib/src/parsers/widgets/stac_icon/stac_icon.dart similarity index 89% rename from packages/stac/lib/src/parsers/stac_icon/stac_icon.dart rename to packages/stac/lib/src/parsers/widgets/stac_icon/stac_icon.dart index 8660b158..30b9c760 100644 --- a/packages/stac/lib/src/parsers/stac_icon/stac_icon.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_icon/stac_icon.dart @@ -4,7 +4,7 @@ import 'package:flutter/cupertino.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:stac/src/utils/icon_utils.dart'; -export 'package:stac/src/parsers/stac_icon/stac_icon_parser.dart'; +export 'stac_icon_parser.dart'; part 'stac_icon.freezed.dart'; part 'stac_icon.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_icon/stac_icon.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_icon/stac_icon.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_icon/stac_icon.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_icon/stac_icon.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_icon/stac_icon.g.dart b/packages/stac/lib/src/parsers/widgets/stac_icon/stac_icon.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_icon/stac_icon.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_icon/stac_icon.g.dart diff --git a/packages/stac/lib/src/parsers/stac_icon/stac_icon_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_icon/stac_icon_parser.dart similarity index 95% rename from packages/stac/lib/src/parsers/stac_icon/stac_icon_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_icon/stac_icon_parser.dart index ed5b0e4e..3eca3cac 100644 --- a/packages/stac/lib/src/parsers/stac_icon/stac_icon_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_icon/stac_icon_parser.dart @@ -1,11 +1,12 @@ import 'package:flutter/cupertino.dart'; -import 'package:stac/src/parsers/stac_icon/stac_icon.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/icon_utils.dart'; import 'package:stac/src/utils/log.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; +import 'stac_icon.dart'; + class StacIconParser extends StacParser { const StacIconParser(); @override diff --git a/packages/stac/lib/src/parsers/stac_icon_button/stac_icon_button.dart b/packages/stac/lib/src/parsers/widgets/stac_icon_button/stac_icon_button.dart similarity index 69% rename from packages/stac/lib/src/parsers/stac_icon_button/stac_icon_button.dart rename to packages/stac/lib/src/parsers/widgets/stac_icon_button/stac_icon_button.dart index 9b640a3c..dde58ddf 100644 --- a/packages/stac/lib/src/parsers/stac_icon_button/stac_icon_button.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_icon_button/stac_icon_button.dart @@ -1,10 +1,10 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_alignment/stac_alignment.dart'; -import 'package:stac/src/parsers/stac_box_constraints/stac_box_constraints.dart'; -import 'package:stac/src/parsers/stac_button_style/stac_button_style.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/theme/stac_button_style/stac_button_style.dart'; +import 'package:stac/src/parsers/widgets/stac_alignment/stac_alignment.dart'; +import 'package:stac/src/parsers/widgets/stac_box_constraints/stac_box_constraints.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; -export 'package:stac/src/parsers/stac_icon_button/stac_icon_button_parser.dart'; +export 'stac_icon_button_parser.dart'; part 'stac_icon_button.freezed.dart'; part 'stac_icon_button.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_icon_button/stac_icon_button.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_icon_button/stac_icon_button.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_icon_button/stac_icon_button.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_icon_button/stac_icon_button.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_icon_button/stac_icon_button.g.dart b/packages/stac/lib/src/parsers/widgets/stac_icon_button/stac_icon_button.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_icon_button/stac_icon_button.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_icon_button/stac_icon_button.g.dart diff --git a/packages/stac/lib/src/parsers/stac_icon_button/stac_icon_button_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_icon_button/stac_icon_button_parser.dart similarity index 82% rename from packages/stac/lib/src/parsers/stac_icon_button/stac_icon_button_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_icon_button/stac_icon_button_parser.dart index 70522b93..3fa3cf18 100644 --- a/packages/stac/lib/src/parsers/stac_icon_button/stac_icon_button_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_icon_button/stac_icon_button_parser.dart @@ -1,11 +1,14 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_box_constraints/stac_box_constraints.dart'; -import 'package:stac/src/parsers/parsers.dart'; +import 'package:stac/src/parsers/theme/stac_button_style/stac_button_style.dart'; +import 'package:stac/src/parsers/widgets/stac_box_constraints/stac_box_constraints.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; +import 'stac_icon_button.dart'; + class StacIconButtonParser extends StacParser { const StacIconButtonParser(); @@ -20,7 +23,7 @@ class StacIconButtonParser extends StacParser { Widget parse(BuildContext context, StacIconButton model) { return IconButton( iconSize: model.iconSize, - padding: model.padding.parse, + padding: model.padding?.parse, alignment: model.alignment?.value, splashRadius: model.splashRadius, color: model.color.toColor(context), diff --git a/packages/stac/lib/src/parsers/stac_image/stac_image.dart b/packages/stac/lib/src/parsers/widgets/stac_image/stac_image.dart similarity index 81% rename from packages/stac/lib/src/parsers/stac_image/stac_image.dart rename to packages/stac/lib/src/parsers/widgets/stac_image/stac_image.dart index 9710be13..c15db0c7 100644 --- a/packages/stac/lib/src/parsers/stac_image/stac_image.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_image/stac_image.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_alignment/stac_alignment.dart'; +import 'package:stac/src/parsers/widgets/stac_alignment/stac_alignment.dart'; -export 'package:stac/src/parsers/stac_image/stac_image_parser.dart'; +export 'stac_image_parser.dart'; part 'stac_image.freezed.dart'; part 'stac_image.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_image/stac_image.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_image/stac_image.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_image/stac_image.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_image/stac_image.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_image/stac_image.g.dart b/packages/stac/lib/src/parsers/widgets/stac_image/stac_image.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_image/stac_image.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_image/stac_image.g.dart diff --git a/packages/stac/lib/src/parsers/stac_image/stac_image_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_image/stac_image_parser.dart similarity index 96% rename from packages/stac/lib/src/parsers/stac_image/stac_image_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_image/stac_image_parser.dart index 04b3d804..fac7158b 100644 --- a/packages/stac/lib/src/parsers/stac_image/stac_image_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_image/stac_image_parser.dart @@ -1,11 +1,12 @@ import 'dart:io'; import 'package:flutter/cupertino.dart'; -import 'package:stac/src/parsers/stac_image/stac_image.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; +import 'stac_image.dart'; + class StacImageParser extends StacParser { const StacImageParser(); diff --git a/packages/stac/lib/src/parsers/stac_input_border/stac_input_border.dart b/packages/stac/lib/src/parsers/widgets/stac_input_border/stac_input_border.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_input_border/stac_input_border.dart rename to packages/stac/lib/src/parsers/widgets/stac_input_border/stac_input_border.dart index 6b9d72ca..41dc20c9 100644 --- a/packages/stac/lib/src/parsers/stac_input_border/stac_input_border.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_input_border/stac_input_border.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:stac/src/framework/ui/stac_outline_input_border.dart'; -import 'package:stac/src/parsers/stac_border_radius/stac_border_radius.dart'; -import 'package:stac/src/parsers/stac_gradient/stac_gradient.dart'; +import 'package:stac/src/parsers/widgets/stac_border_radius/stac_border_radius.dart'; +import 'package:stac/src/parsers/widgets/stac_gradient/stac_gradient.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_input_border.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_input_border/stac_input_border.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_input_border/stac_input_border.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_input_border/stac_input_border.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_input_border/stac_input_border.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_input_border/stac_input_border.g.dart b/packages/stac/lib/src/parsers/widgets/stac_input_border/stac_input_border.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_input_border/stac_input_border.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_input_border/stac_input_border.g.dart diff --git a/packages/stac/lib/src/parsers/stac_input_decoration/stac_input_decoration.dart b/packages/stac/lib/src/parsers/widgets/stac_input_decoration/stac_input_decoration.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_input_decoration/stac_input_decoration.dart rename to packages/stac/lib/src/parsers/widgets/stac_input_decoration/stac_input_decoration.dart index f7885bf5..c5a3adf1 100644 --- a/packages/stac/lib/src/parsers/stac_input_decoration/stac_input_decoration.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_input_decoration/stac_input_decoration.dart @@ -1,13 +1,14 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_box_constraints/stac_box_constraints.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_input_border/stac_input_border.dart'; -import 'package:stac/src/parsers/stac_input_decoration_theme/stac_input_decoration_theme.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/theme/stac_input_decoration_theme/stac_input_decoration_theme.dart'; +import 'package:stac/src/parsers/widgets/stac_box_constraints/stac_box_constraints.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_input_border/stac_input_border.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/color_utils.dart'; +import '../../../framework/framework.dart'; + part 'stac_input_decoration.freezed.dart'; part 'stac_input_decoration.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_input_decoration/stac_input_decoration.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_input_decoration/stac_input_decoration.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_input_decoration/stac_input_decoration.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_input_decoration/stac_input_decoration.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_input_decoration/stac_input_decoration.g.dart b/packages/stac/lib/src/parsers/widgets/stac_input_decoration/stac_input_decoration.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_input_decoration/stac_input_decoration.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_input_decoration/stac_input_decoration.g.dart diff --git a/packages/stac/lib/src/parsers/widgets/stac_input_decoration_theme/stac_input_decoration_theme.dart b/packages/stac/lib/src/parsers/widgets/stac_input_decoration_theme/stac_input_decoration_theme.dart new file mode 100644 index 00000000..eebb8b40 --- /dev/null +++ b/packages/stac/lib/src/parsers/widgets/stac_input_decoration_theme/stac_input_decoration_theme.dart @@ -0,0 +1,107 @@ +import 'package:flutter/material.dart'; +import 'package:freezed_annotation/freezed_annotation.dart'; +import 'package:stac/src/parsers/widgets/stac_border_side/stac_border_side.dart'; +import 'package:stac/src/parsers/widgets/stac_box_constraints/stac_box_constraints.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_input_border/stac_input_border.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/utils/color_utils.dart'; + +part 'stac_input_decoration_theme.freezed.dart'; +part 'stac_input_decoration_theme.g.dart'; + +enum StacFloatingLabelAlignment { + start, + center; + + FloatingLabelAlignment get parse { + switch (this) { + case start: + return FloatingLabelAlignment.start; + case center: + return FloatingLabelAlignment.center; + } + } +} + +@freezed +abstract class StacInputDecorationTheme with _$StacInputDecorationTheme { + const factory StacInputDecorationTheme({ + StacTextStyle? labelStyle, + StacTextStyle? floatingLabelStyle, + StacTextStyle? helperStyle, + int? helperMaxLines, + StacTextStyle? hintStyle, + StacTextStyle? errorStyle, + int? errorMaxLines, + FloatingLabelBehavior? floatingLabelBehavior, + StacFloatingLabelAlignment? floatingLabelAlignment, + @Default(false) bool isDense, + StacEdgeInsets? contentPadding, + @Default(false) bool isCollapsed, + String? iconColor, + StacTextStyle? prefixStyle, + String? prefixIconColor, + StacTextStyle? suffixStyle, + String? suffixIconColor, + StacTextStyle? counterStyle, + @Default(false) bool filled, + String? fillColor, + StacBorderSide? activeIndicatorBorder, + StacBorderSide? outlineBorder, + String? focusColor, + String? hoverColor, + StacInputBorder? errorBorder, + StacInputBorder? focusedBorder, + StacInputBorder? focusedErrorBorder, + StacInputBorder? disabledBorder, + StacInputBorder? enabledBorder, + StacInputBorder? border, + @Default(false) bool alignLabelWithHint, + StacBoxConstraints? constraints, + }) = _StacInputDecorationTheme; + + factory StacInputDecorationTheme.fromJson(Map json) => + _$StacInputDecorationThemeFromJson(json); +} + +extension StacInputDecorationThemeParser on StacInputDecorationTheme? { + InputDecorationTheme parse(BuildContext context) { + return InputDecorationTheme( + labelStyle: this?.labelStyle?.parse(context), + floatingLabelStyle: this?.floatingLabelStyle?.parse(context), + helperStyle: this?.helperStyle?.parse(context), + helperMaxLines: this?.helperMaxLines, + hintStyle: this?.hintStyle?.parse(context), + errorStyle: this?.errorStyle?.parse(context), + errorMaxLines: this?.errorMaxLines, + floatingLabelBehavior: + this?.floatingLabelBehavior ?? FloatingLabelBehavior.auto, + floatingLabelAlignment: + this?.floatingLabelAlignment?.parse ?? FloatingLabelAlignment.start, + isDense: this?.isDense ?? false, + contentPadding: this?.contentPadding?.parse, + isCollapsed: this?.isCollapsed ?? false, + iconColor: this?.iconColor.toColor(context), + prefixStyle: this?.prefixStyle?.parse(context), + prefixIconColor: this?.prefixIconColor.toColor(context), + suffixStyle: this?.suffixStyle?.parse(context), + suffixIconColor: this?.suffixIconColor.toColor(context), + counterStyle: this?.counterStyle?.parse(context), + filled: this?.filled ?? false, + fillColor: this?.fillColor.toColor(context), + activeIndicatorBorder: this?.activeIndicatorBorder.parse(context), + outlineBorder: this?.outlineBorder.parse(context), + focusColor: this?.focusColor.toColor(context), + hoverColor: this?.hoverColor.toColor(context), + errorBorder: this?.errorBorder?.parse(context), + focusedBorder: this?.focusedBorder?.parse(context), + focusedErrorBorder: this?.focusedErrorBorder?.parse(context), + disabledBorder: this?.disabledBorder?.parse(context), + enabledBorder: this?.enabledBorder?.parse(context), + border: this?.border?.parse(context), + alignLabelWithHint: this?.alignLabelWithHint ?? false, + constraints: this?.constraints?.parse, + ); + } +} diff --git a/packages/stac/lib/src/parsers/widgets/stac_input_decoration_theme/stac_input_decoration_theme.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_input_decoration_theme/stac_input_decoration_theme.freezed.dart new file mode 100644 index 00000000..8ef8ebb5 --- /dev/null +++ b/packages/stac/lib/src/parsers/widgets/stac_input_decoration_theme/stac_input_decoration_theme.freezed.dart @@ -0,0 +1,1412 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'stac_input_decoration_theme.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$StacInputDecorationTheme { + StacTextStyle? get labelStyle; + StacTextStyle? get floatingLabelStyle; + StacTextStyle? get helperStyle; + int? get helperMaxLines; + StacTextStyle? get hintStyle; + StacTextStyle? get errorStyle; + int? get errorMaxLines; + FloatingLabelBehavior? get floatingLabelBehavior; + StacFloatingLabelAlignment? get floatingLabelAlignment; + bool get isDense; + StacEdgeInsets? get contentPadding; + bool get isCollapsed; + String? get iconColor; + StacTextStyle? get prefixStyle; + String? get prefixIconColor; + StacTextStyle? get suffixStyle; + String? get suffixIconColor; + StacTextStyle? get counterStyle; + bool get filled; + String? get fillColor; + StacBorderSide? get activeIndicatorBorder; + StacBorderSide? get outlineBorder; + String? get focusColor; + String? get hoverColor; + StacInputBorder? get errorBorder; + StacInputBorder? get focusedBorder; + StacInputBorder? get focusedErrorBorder; + StacInputBorder? get disabledBorder; + StacInputBorder? get enabledBorder; + StacInputBorder? get border; + bool get alignLabelWithHint; + StacBoxConstraints? get constraints; + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + $StacInputDecorationThemeCopyWith get copyWith => + _$StacInputDecorationThemeCopyWithImpl( + this as StacInputDecorationTheme, _$identity); + + /// Serializes this StacInputDecorationTheme to a JSON map. + Map toJson(); + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is StacInputDecorationTheme && + (identical(other.labelStyle, labelStyle) || + other.labelStyle == labelStyle) && + (identical(other.floatingLabelStyle, floatingLabelStyle) || + other.floatingLabelStyle == floatingLabelStyle) && + (identical(other.helperStyle, helperStyle) || + other.helperStyle == helperStyle) && + (identical(other.helperMaxLines, helperMaxLines) || + other.helperMaxLines == helperMaxLines) && + (identical(other.hintStyle, hintStyle) || + other.hintStyle == hintStyle) && + (identical(other.errorStyle, errorStyle) || + other.errorStyle == errorStyle) && + (identical(other.errorMaxLines, errorMaxLines) || + other.errorMaxLines == errorMaxLines) && + (identical(other.floatingLabelBehavior, floatingLabelBehavior) || + other.floatingLabelBehavior == floatingLabelBehavior) && + (identical(other.floatingLabelAlignment, floatingLabelAlignment) || + other.floatingLabelAlignment == floatingLabelAlignment) && + (identical(other.isDense, isDense) || other.isDense == isDense) && + (identical(other.contentPadding, contentPadding) || + other.contentPadding == contentPadding) && + (identical(other.isCollapsed, isCollapsed) || + other.isCollapsed == isCollapsed) && + (identical(other.iconColor, iconColor) || + other.iconColor == iconColor) && + (identical(other.prefixStyle, prefixStyle) || + other.prefixStyle == prefixStyle) && + (identical(other.prefixIconColor, prefixIconColor) || + other.prefixIconColor == prefixIconColor) && + (identical(other.suffixStyle, suffixStyle) || + other.suffixStyle == suffixStyle) && + (identical(other.suffixIconColor, suffixIconColor) || + other.suffixIconColor == suffixIconColor) && + (identical(other.counterStyle, counterStyle) || + other.counterStyle == counterStyle) && + (identical(other.filled, filled) || other.filled == filled) && + (identical(other.fillColor, fillColor) || + other.fillColor == fillColor) && + (identical(other.activeIndicatorBorder, activeIndicatorBorder) || + other.activeIndicatorBorder == activeIndicatorBorder) && + (identical(other.outlineBorder, outlineBorder) || + other.outlineBorder == outlineBorder) && + (identical(other.focusColor, focusColor) || + other.focusColor == focusColor) && + (identical(other.hoverColor, hoverColor) || + other.hoverColor == hoverColor) && + (identical(other.errorBorder, errorBorder) || + other.errorBorder == errorBorder) && + (identical(other.focusedBorder, focusedBorder) || + other.focusedBorder == focusedBorder) && + (identical(other.focusedErrorBorder, focusedErrorBorder) || + other.focusedErrorBorder == focusedErrorBorder) && + (identical(other.disabledBorder, disabledBorder) || + other.disabledBorder == disabledBorder) && + (identical(other.enabledBorder, enabledBorder) || + other.enabledBorder == enabledBorder) && + (identical(other.border, border) || other.border == border) && + (identical(other.alignLabelWithHint, alignLabelWithHint) || + other.alignLabelWithHint == alignLabelWithHint) && + (identical(other.constraints, constraints) || + other.constraints == constraints)); + } + + @JsonKey(includeFromJson: false, includeToJson: false) + @override + int get hashCode => Object.hashAll([ + runtimeType, + labelStyle, + floatingLabelStyle, + helperStyle, + helperMaxLines, + hintStyle, + errorStyle, + errorMaxLines, + floatingLabelBehavior, + floatingLabelAlignment, + isDense, + contentPadding, + isCollapsed, + iconColor, + prefixStyle, + prefixIconColor, + suffixStyle, + suffixIconColor, + counterStyle, + filled, + fillColor, + activeIndicatorBorder, + outlineBorder, + focusColor, + hoverColor, + errorBorder, + focusedBorder, + focusedErrorBorder, + disabledBorder, + enabledBorder, + border, + alignLabelWithHint, + constraints + ]); + + @override + String toString() { + return 'StacInputDecorationTheme(labelStyle: $labelStyle, floatingLabelStyle: $floatingLabelStyle, helperStyle: $helperStyle, helperMaxLines: $helperMaxLines, hintStyle: $hintStyle, errorStyle: $errorStyle, errorMaxLines: $errorMaxLines, floatingLabelBehavior: $floatingLabelBehavior, floatingLabelAlignment: $floatingLabelAlignment, isDense: $isDense, contentPadding: $contentPadding, isCollapsed: $isCollapsed, iconColor: $iconColor, prefixStyle: $prefixStyle, prefixIconColor: $prefixIconColor, suffixStyle: $suffixStyle, suffixIconColor: $suffixIconColor, counterStyle: $counterStyle, filled: $filled, fillColor: $fillColor, activeIndicatorBorder: $activeIndicatorBorder, outlineBorder: $outlineBorder, focusColor: $focusColor, hoverColor: $hoverColor, errorBorder: $errorBorder, focusedBorder: $focusedBorder, focusedErrorBorder: $focusedErrorBorder, disabledBorder: $disabledBorder, enabledBorder: $enabledBorder, border: $border, alignLabelWithHint: $alignLabelWithHint, constraints: $constraints)'; + } +} + +/// @nodoc +abstract mixin class $StacInputDecorationThemeCopyWith<$Res> { + factory $StacInputDecorationThemeCopyWith(StacInputDecorationTheme value, + $Res Function(StacInputDecorationTheme) _then) = + _$StacInputDecorationThemeCopyWithImpl; + @useResult + $Res call( + {StacTextStyle? labelStyle, + StacTextStyle? floatingLabelStyle, + StacTextStyle? helperStyle, + int? helperMaxLines, + StacTextStyle? hintStyle, + StacTextStyle? errorStyle, + int? errorMaxLines, + FloatingLabelBehavior? floatingLabelBehavior, + StacFloatingLabelAlignment? floatingLabelAlignment, + bool isDense, + StacEdgeInsets? contentPadding, + bool isCollapsed, + String? iconColor, + StacTextStyle? prefixStyle, + String? prefixIconColor, + StacTextStyle? suffixStyle, + String? suffixIconColor, + StacTextStyle? counterStyle, + bool filled, + String? fillColor, + StacBorderSide? activeIndicatorBorder, + StacBorderSide? outlineBorder, + String? focusColor, + String? hoverColor, + StacInputBorder? errorBorder, + StacInputBorder? focusedBorder, + StacInputBorder? focusedErrorBorder, + StacInputBorder? disabledBorder, + StacInputBorder? enabledBorder, + StacInputBorder? border, + bool alignLabelWithHint, + StacBoxConstraints? constraints}); + + $StacTextStyleCopyWith<$Res>? get labelStyle; + $StacTextStyleCopyWith<$Res>? get floatingLabelStyle; + $StacTextStyleCopyWith<$Res>? get helperStyle; + $StacTextStyleCopyWith<$Res>? get hintStyle; + $StacTextStyleCopyWith<$Res>? get errorStyle; + $StacEdgeInsetsCopyWith<$Res>? get contentPadding; + $StacTextStyleCopyWith<$Res>? get prefixStyle; + $StacTextStyleCopyWith<$Res>? get suffixStyle; + $StacTextStyleCopyWith<$Res>? get counterStyle; + $StacBorderSideCopyWith<$Res>? get activeIndicatorBorder; + $StacBorderSideCopyWith<$Res>? get outlineBorder; + $StacInputBorderCopyWith<$Res>? get errorBorder; + $StacInputBorderCopyWith<$Res>? get focusedBorder; + $StacInputBorderCopyWith<$Res>? get focusedErrorBorder; + $StacInputBorderCopyWith<$Res>? get disabledBorder; + $StacInputBorderCopyWith<$Res>? get enabledBorder; + $StacInputBorderCopyWith<$Res>? get border; + $StacBoxConstraintsCopyWith<$Res>? get constraints; +} + +/// @nodoc +class _$StacInputDecorationThemeCopyWithImpl<$Res> + implements $StacInputDecorationThemeCopyWith<$Res> { + _$StacInputDecorationThemeCopyWithImpl(this._self, this._then); + + final StacInputDecorationTheme _self; + final $Res Function(StacInputDecorationTheme) _then; + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? labelStyle = freezed, + Object? floatingLabelStyle = freezed, + Object? helperStyle = freezed, + Object? helperMaxLines = freezed, + Object? hintStyle = freezed, + Object? errorStyle = freezed, + Object? errorMaxLines = freezed, + Object? floatingLabelBehavior = freezed, + Object? floatingLabelAlignment = freezed, + Object? isDense = null, + Object? contentPadding = freezed, + Object? isCollapsed = null, + Object? iconColor = freezed, + Object? prefixStyle = freezed, + Object? prefixIconColor = freezed, + Object? suffixStyle = freezed, + Object? suffixIconColor = freezed, + Object? counterStyle = freezed, + Object? filled = null, + Object? fillColor = freezed, + Object? activeIndicatorBorder = freezed, + Object? outlineBorder = freezed, + Object? focusColor = freezed, + Object? hoverColor = freezed, + Object? errorBorder = freezed, + Object? focusedBorder = freezed, + Object? focusedErrorBorder = freezed, + Object? disabledBorder = freezed, + Object? enabledBorder = freezed, + Object? border = freezed, + Object? alignLabelWithHint = null, + Object? constraints = freezed, + }) { + return _then(_self.copyWith( + labelStyle: freezed == labelStyle + ? _self.labelStyle + : labelStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + floatingLabelStyle: freezed == floatingLabelStyle + ? _self.floatingLabelStyle + : floatingLabelStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + helperStyle: freezed == helperStyle + ? _self.helperStyle + : helperStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + helperMaxLines: freezed == helperMaxLines + ? _self.helperMaxLines + : helperMaxLines // ignore: cast_nullable_to_non_nullable + as int?, + hintStyle: freezed == hintStyle + ? _self.hintStyle + : hintStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + errorStyle: freezed == errorStyle + ? _self.errorStyle + : errorStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + errorMaxLines: freezed == errorMaxLines + ? _self.errorMaxLines + : errorMaxLines // ignore: cast_nullable_to_non_nullable + as int?, + floatingLabelBehavior: freezed == floatingLabelBehavior + ? _self.floatingLabelBehavior + : floatingLabelBehavior // ignore: cast_nullable_to_non_nullable + as FloatingLabelBehavior?, + floatingLabelAlignment: freezed == floatingLabelAlignment + ? _self.floatingLabelAlignment + : floatingLabelAlignment // ignore: cast_nullable_to_non_nullable + as StacFloatingLabelAlignment?, + isDense: null == isDense + ? _self.isDense + : isDense // ignore: cast_nullable_to_non_nullable + as bool, + contentPadding: freezed == contentPadding + ? _self.contentPadding + : contentPadding // ignore: cast_nullable_to_non_nullable + as StacEdgeInsets?, + isCollapsed: null == isCollapsed + ? _self.isCollapsed + : isCollapsed // ignore: cast_nullable_to_non_nullable + as bool, + iconColor: freezed == iconColor + ? _self.iconColor + : iconColor // ignore: cast_nullable_to_non_nullable + as String?, + prefixStyle: freezed == prefixStyle + ? _self.prefixStyle + : prefixStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + prefixIconColor: freezed == prefixIconColor + ? _self.prefixIconColor + : prefixIconColor // ignore: cast_nullable_to_non_nullable + as String?, + suffixStyle: freezed == suffixStyle + ? _self.suffixStyle + : suffixStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + suffixIconColor: freezed == suffixIconColor + ? _self.suffixIconColor + : suffixIconColor // ignore: cast_nullable_to_non_nullable + as String?, + counterStyle: freezed == counterStyle + ? _self.counterStyle + : counterStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + filled: null == filled + ? _self.filled + : filled // ignore: cast_nullable_to_non_nullable + as bool, + fillColor: freezed == fillColor + ? _self.fillColor + : fillColor // ignore: cast_nullable_to_non_nullable + as String?, + activeIndicatorBorder: freezed == activeIndicatorBorder + ? _self.activeIndicatorBorder + : activeIndicatorBorder // ignore: cast_nullable_to_non_nullable + as StacBorderSide?, + outlineBorder: freezed == outlineBorder + ? _self.outlineBorder + : outlineBorder // ignore: cast_nullable_to_non_nullable + as StacBorderSide?, + focusColor: freezed == focusColor + ? _self.focusColor + : focusColor // ignore: cast_nullable_to_non_nullable + as String?, + hoverColor: freezed == hoverColor + ? _self.hoverColor + : hoverColor // ignore: cast_nullable_to_non_nullable + as String?, + errorBorder: freezed == errorBorder + ? _self.errorBorder + : errorBorder // ignore: cast_nullable_to_non_nullable + as StacInputBorder?, + focusedBorder: freezed == focusedBorder + ? _self.focusedBorder + : focusedBorder // ignore: cast_nullable_to_non_nullable + as StacInputBorder?, + focusedErrorBorder: freezed == focusedErrorBorder + ? _self.focusedErrorBorder + : focusedErrorBorder // ignore: cast_nullable_to_non_nullable + as StacInputBorder?, + disabledBorder: freezed == disabledBorder + ? _self.disabledBorder + : disabledBorder // ignore: cast_nullable_to_non_nullable + as StacInputBorder?, + enabledBorder: freezed == enabledBorder + ? _self.enabledBorder + : enabledBorder // ignore: cast_nullable_to_non_nullable + as StacInputBorder?, + border: freezed == border + ? _self.border + : border // ignore: cast_nullable_to_non_nullable + as StacInputBorder?, + alignLabelWithHint: null == alignLabelWithHint + ? _self.alignLabelWithHint + : alignLabelWithHint // ignore: cast_nullable_to_non_nullable + as bool, + constraints: freezed == constraints + ? _self.constraints + : constraints // ignore: cast_nullable_to_non_nullable + as StacBoxConstraints?, + )); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get labelStyle { + if (_self.labelStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.labelStyle!, (value) { + return _then(_self.copyWith(labelStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get floatingLabelStyle { + if (_self.floatingLabelStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.floatingLabelStyle!, (value) { + return _then(_self.copyWith(floatingLabelStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get helperStyle { + if (_self.helperStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.helperStyle!, (value) { + return _then(_self.copyWith(helperStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get hintStyle { + if (_self.hintStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.hintStyle!, (value) { + return _then(_self.copyWith(hintStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get errorStyle { + if (_self.errorStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.errorStyle!, (value) { + return _then(_self.copyWith(errorStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacEdgeInsetsCopyWith<$Res>? get contentPadding { + if (_self.contentPadding == null) { + return null; + } + + return $StacEdgeInsetsCopyWith<$Res>(_self.contentPadding!, (value) { + return _then(_self.copyWith(contentPadding: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get prefixStyle { + if (_self.prefixStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.prefixStyle!, (value) { + return _then(_self.copyWith(prefixStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get suffixStyle { + if (_self.suffixStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.suffixStyle!, (value) { + return _then(_self.copyWith(suffixStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get counterStyle { + if (_self.counterStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.counterStyle!, (value) { + return _then(_self.copyWith(counterStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacBorderSideCopyWith<$Res>? get activeIndicatorBorder { + if (_self.activeIndicatorBorder == null) { + return null; + } + + return $StacBorderSideCopyWith<$Res>(_self.activeIndicatorBorder!, (value) { + return _then(_self.copyWith(activeIndicatorBorder: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacBorderSideCopyWith<$Res>? get outlineBorder { + if (_self.outlineBorder == null) { + return null; + } + + return $StacBorderSideCopyWith<$Res>(_self.outlineBorder!, (value) { + return _then(_self.copyWith(outlineBorder: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacInputBorderCopyWith<$Res>? get errorBorder { + if (_self.errorBorder == null) { + return null; + } + + return $StacInputBorderCopyWith<$Res>(_self.errorBorder!, (value) { + return _then(_self.copyWith(errorBorder: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacInputBorderCopyWith<$Res>? get focusedBorder { + if (_self.focusedBorder == null) { + return null; + } + + return $StacInputBorderCopyWith<$Res>(_self.focusedBorder!, (value) { + return _then(_self.copyWith(focusedBorder: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacInputBorderCopyWith<$Res>? get focusedErrorBorder { + if (_self.focusedErrorBorder == null) { + return null; + } + + return $StacInputBorderCopyWith<$Res>(_self.focusedErrorBorder!, (value) { + return _then(_self.copyWith(focusedErrorBorder: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacInputBorderCopyWith<$Res>? get disabledBorder { + if (_self.disabledBorder == null) { + return null; + } + + return $StacInputBorderCopyWith<$Res>(_self.disabledBorder!, (value) { + return _then(_self.copyWith(disabledBorder: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacInputBorderCopyWith<$Res>? get enabledBorder { + if (_self.enabledBorder == null) { + return null; + } + + return $StacInputBorderCopyWith<$Res>(_self.enabledBorder!, (value) { + return _then(_self.copyWith(enabledBorder: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacInputBorderCopyWith<$Res>? get border { + if (_self.border == null) { + return null; + } + + return $StacInputBorderCopyWith<$Res>(_self.border!, (value) { + return _then(_self.copyWith(border: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacBoxConstraintsCopyWith<$Res>? get constraints { + if (_self.constraints == null) { + return null; + } + + return $StacBoxConstraintsCopyWith<$Res>(_self.constraints!, (value) { + return _then(_self.copyWith(constraints: value)); + }); + } +} + +/// @nodoc +@JsonSerializable() +class _StacInputDecorationTheme implements StacInputDecorationTheme { + const _StacInputDecorationTheme( + {this.labelStyle, + this.floatingLabelStyle, + this.helperStyle, + this.helperMaxLines, + this.hintStyle, + this.errorStyle, + this.errorMaxLines, + this.floatingLabelBehavior, + this.floatingLabelAlignment, + this.isDense = false, + this.contentPadding, + this.isCollapsed = false, + this.iconColor, + this.prefixStyle, + this.prefixIconColor, + this.suffixStyle, + this.suffixIconColor, + this.counterStyle, + this.filled = false, + this.fillColor, + this.activeIndicatorBorder, + this.outlineBorder, + this.focusColor, + this.hoverColor, + this.errorBorder, + this.focusedBorder, + this.focusedErrorBorder, + this.disabledBorder, + this.enabledBorder, + this.border, + this.alignLabelWithHint = false, + this.constraints}); + factory _StacInputDecorationTheme.fromJson(Map json) => + _$StacInputDecorationThemeFromJson(json); + + @override + final StacTextStyle? labelStyle; + @override + final StacTextStyle? floatingLabelStyle; + @override + final StacTextStyle? helperStyle; + @override + final int? helperMaxLines; + @override + final StacTextStyle? hintStyle; + @override + final StacTextStyle? errorStyle; + @override + final int? errorMaxLines; + @override + final FloatingLabelBehavior? floatingLabelBehavior; + @override + final StacFloatingLabelAlignment? floatingLabelAlignment; + @override + @JsonKey() + final bool isDense; + @override + final StacEdgeInsets? contentPadding; + @override + @JsonKey() + final bool isCollapsed; + @override + final String? iconColor; + @override + final StacTextStyle? prefixStyle; + @override + final String? prefixIconColor; + @override + final StacTextStyle? suffixStyle; + @override + final String? suffixIconColor; + @override + final StacTextStyle? counterStyle; + @override + @JsonKey() + final bool filled; + @override + final String? fillColor; + @override + final StacBorderSide? activeIndicatorBorder; + @override + final StacBorderSide? outlineBorder; + @override + final String? focusColor; + @override + final String? hoverColor; + @override + final StacInputBorder? errorBorder; + @override + final StacInputBorder? focusedBorder; + @override + final StacInputBorder? focusedErrorBorder; + @override + final StacInputBorder? disabledBorder; + @override + final StacInputBorder? enabledBorder; + @override + final StacInputBorder? border; + @override + @JsonKey() + final bool alignLabelWithHint; + @override + final StacBoxConstraints? constraints; + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$StacInputDecorationThemeCopyWith<_StacInputDecorationTheme> get copyWith => + __$StacInputDecorationThemeCopyWithImpl<_StacInputDecorationTheme>( + this, _$identity); + + @override + Map toJson() { + return _$StacInputDecorationThemeToJson( + this, + ); + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _StacInputDecorationTheme && + (identical(other.labelStyle, labelStyle) || + other.labelStyle == labelStyle) && + (identical(other.floatingLabelStyle, floatingLabelStyle) || + other.floatingLabelStyle == floatingLabelStyle) && + (identical(other.helperStyle, helperStyle) || + other.helperStyle == helperStyle) && + (identical(other.helperMaxLines, helperMaxLines) || + other.helperMaxLines == helperMaxLines) && + (identical(other.hintStyle, hintStyle) || + other.hintStyle == hintStyle) && + (identical(other.errorStyle, errorStyle) || + other.errorStyle == errorStyle) && + (identical(other.errorMaxLines, errorMaxLines) || + other.errorMaxLines == errorMaxLines) && + (identical(other.floatingLabelBehavior, floatingLabelBehavior) || + other.floatingLabelBehavior == floatingLabelBehavior) && + (identical(other.floatingLabelAlignment, floatingLabelAlignment) || + other.floatingLabelAlignment == floatingLabelAlignment) && + (identical(other.isDense, isDense) || other.isDense == isDense) && + (identical(other.contentPadding, contentPadding) || + other.contentPadding == contentPadding) && + (identical(other.isCollapsed, isCollapsed) || + other.isCollapsed == isCollapsed) && + (identical(other.iconColor, iconColor) || + other.iconColor == iconColor) && + (identical(other.prefixStyle, prefixStyle) || + other.prefixStyle == prefixStyle) && + (identical(other.prefixIconColor, prefixIconColor) || + other.prefixIconColor == prefixIconColor) && + (identical(other.suffixStyle, suffixStyle) || + other.suffixStyle == suffixStyle) && + (identical(other.suffixIconColor, suffixIconColor) || + other.suffixIconColor == suffixIconColor) && + (identical(other.counterStyle, counterStyle) || + other.counterStyle == counterStyle) && + (identical(other.filled, filled) || other.filled == filled) && + (identical(other.fillColor, fillColor) || + other.fillColor == fillColor) && + (identical(other.activeIndicatorBorder, activeIndicatorBorder) || + other.activeIndicatorBorder == activeIndicatorBorder) && + (identical(other.outlineBorder, outlineBorder) || + other.outlineBorder == outlineBorder) && + (identical(other.focusColor, focusColor) || + other.focusColor == focusColor) && + (identical(other.hoverColor, hoverColor) || + other.hoverColor == hoverColor) && + (identical(other.errorBorder, errorBorder) || + other.errorBorder == errorBorder) && + (identical(other.focusedBorder, focusedBorder) || + other.focusedBorder == focusedBorder) && + (identical(other.focusedErrorBorder, focusedErrorBorder) || + other.focusedErrorBorder == focusedErrorBorder) && + (identical(other.disabledBorder, disabledBorder) || + other.disabledBorder == disabledBorder) && + (identical(other.enabledBorder, enabledBorder) || + other.enabledBorder == enabledBorder) && + (identical(other.border, border) || other.border == border) && + (identical(other.alignLabelWithHint, alignLabelWithHint) || + other.alignLabelWithHint == alignLabelWithHint) && + (identical(other.constraints, constraints) || + other.constraints == constraints)); + } + + @JsonKey(includeFromJson: false, includeToJson: false) + @override + int get hashCode => Object.hashAll([ + runtimeType, + labelStyle, + floatingLabelStyle, + helperStyle, + helperMaxLines, + hintStyle, + errorStyle, + errorMaxLines, + floatingLabelBehavior, + floatingLabelAlignment, + isDense, + contentPadding, + isCollapsed, + iconColor, + prefixStyle, + prefixIconColor, + suffixStyle, + suffixIconColor, + counterStyle, + filled, + fillColor, + activeIndicatorBorder, + outlineBorder, + focusColor, + hoverColor, + errorBorder, + focusedBorder, + focusedErrorBorder, + disabledBorder, + enabledBorder, + border, + alignLabelWithHint, + constraints + ]); + + @override + String toString() { + return 'StacInputDecorationTheme(labelStyle: $labelStyle, floatingLabelStyle: $floatingLabelStyle, helperStyle: $helperStyle, helperMaxLines: $helperMaxLines, hintStyle: $hintStyle, errorStyle: $errorStyle, errorMaxLines: $errorMaxLines, floatingLabelBehavior: $floatingLabelBehavior, floatingLabelAlignment: $floatingLabelAlignment, isDense: $isDense, contentPadding: $contentPadding, isCollapsed: $isCollapsed, iconColor: $iconColor, prefixStyle: $prefixStyle, prefixIconColor: $prefixIconColor, suffixStyle: $suffixStyle, suffixIconColor: $suffixIconColor, counterStyle: $counterStyle, filled: $filled, fillColor: $fillColor, activeIndicatorBorder: $activeIndicatorBorder, outlineBorder: $outlineBorder, focusColor: $focusColor, hoverColor: $hoverColor, errorBorder: $errorBorder, focusedBorder: $focusedBorder, focusedErrorBorder: $focusedErrorBorder, disabledBorder: $disabledBorder, enabledBorder: $enabledBorder, border: $border, alignLabelWithHint: $alignLabelWithHint, constraints: $constraints)'; + } +} + +/// @nodoc +abstract mixin class _$StacInputDecorationThemeCopyWith<$Res> + implements $StacInputDecorationThemeCopyWith<$Res> { + factory _$StacInputDecorationThemeCopyWith(_StacInputDecorationTheme value, + $Res Function(_StacInputDecorationTheme) _then) = + __$StacInputDecorationThemeCopyWithImpl; + @override + @useResult + $Res call( + {StacTextStyle? labelStyle, + StacTextStyle? floatingLabelStyle, + StacTextStyle? helperStyle, + int? helperMaxLines, + StacTextStyle? hintStyle, + StacTextStyle? errorStyle, + int? errorMaxLines, + FloatingLabelBehavior? floatingLabelBehavior, + StacFloatingLabelAlignment? floatingLabelAlignment, + bool isDense, + StacEdgeInsets? contentPadding, + bool isCollapsed, + String? iconColor, + StacTextStyle? prefixStyle, + String? prefixIconColor, + StacTextStyle? suffixStyle, + String? suffixIconColor, + StacTextStyle? counterStyle, + bool filled, + String? fillColor, + StacBorderSide? activeIndicatorBorder, + StacBorderSide? outlineBorder, + String? focusColor, + String? hoverColor, + StacInputBorder? errorBorder, + StacInputBorder? focusedBorder, + StacInputBorder? focusedErrorBorder, + StacInputBorder? disabledBorder, + StacInputBorder? enabledBorder, + StacInputBorder? border, + bool alignLabelWithHint, + StacBoxConstraints? constraints}); + + @override + $StacTextStyleCopyWith<$Res>? get labelStyle; + @override + $StacTextStyleCopyWith<$Res>? get floatingLabelStyle; + @override + $StacTextStyleCopyWith<$Res>? get helperStyle; + @override + $StacTextStyleCopyWith<$Res>? get hintStyle; + @override + $StacTextStyleCopyWith<$Res>? get errorStyle; + @override + $StacEdgeInsetsCopyWith<$Res>? get contentPadding; + @override + $StacTextStyleCopyWith<$Res>? get prefixStyle; + @override + $StacTextStyleCopyWith<$Res>? get suffixStyle; + @override + $StacTextStyleCopyWith<$Res>? get counterStyle; + @override + $StacBorderSideCopyWith<$Res>? get activeIndicatorBorder; + @override + $StacBorderSideCopyWith<$Res>? get outlineBorder; + @override + $StacInputBorderCopyWith<$Res>? get errorBorder; + @override + $StacInputBorderCopyWith<$Res>? get focusedBorder; + @override + $StacInputBorderCopyWith<$Res>? get focusedErrorBorder; + @override + $StacInputBorderCopyWith<$Res>? get disabledBorder; + @override + $StacInputBorderCopyWith<$Res>? get enabledBorder; + @override + $StacInputBorderCopyWith<$Res>? get border; + @override + $StacBoxConstraintsCopyWith<$Res>? get constraints; +} + +/// @nodoc +class __$StacInputDecorationThemeCopyWithImpl<$Res> + implements _$StacInputDecorationThemeCopyWith<$Res> { + __$StacInputDecorationThemeCopyWithImpl(this._self, this._then); + + final _StacInputDecorationTheme _self; + final $Res Function(_StacInputDecorationTheme) _then; + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $Res call({ + Object? labelStyle = freezed, + Object? floatingLabelStyle = freezed, + Object? helperStyle = freezed, + Object? helperMaxLines = freezed, + Object? hintStyle = freezed, + Object? errorStyle = freezed, + Object? errorMaxLines = freezed, + Object? floatingLabelBehavior = freezed, + Object? floatingLabelAlignment = freezed, + Object? isDense = null, + Object? contentPadding = freezed, + Object? isCollapsed = null, + Object? iconColor = freezed, + Object? prefixStyle = freezed, + Object? prefixIconColor = freezed, + Object? suffixStyle = freezed, + Object? suffixIconColor = freezed, + Object? counterStyle = freezed, + Object? filled = null, + Object? fillColor = freezed, + Object? activeIndicatorBorder = freezed, + Object? outlineBorder = freezed, + Object? focusColor = freezed, + Object? hoverColor = freezed, + Object? errorBorder = freezed, + Object? focusedBorder = freezed, + Object? focusedErrorBorder = freezed, + Object? disabledBorder = freezed, + Object? enabledBorder = freezed, + Object? border = freezed, + Object? alignLabelWithHint = null, + Object? constraints = freezed, + }) { + return _then(_StacInputDecorationTheme( + labelStyle: freezed == labelStyle + ? _self.labelStyle + : labelStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + floatingLabelStyle: freezed == floatingLabelStyle + ? _self.floatingLabelStyle + : floatingLabelStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + helperStyle: freezed == helperStyle + ? _self.helperStyle + : helperStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + helperMaxLines: freezed == helperMaxLines + ? _self.helperMaxLines + : helperMaxLines // ignore: cast_nullable_to_non_nullable + as int?, + hintStyle: freezed == hintStyle + ? _self.hintStyle + : hintStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + errorStyle: freezed == errorStyle + ? _self.errorStyle + : errorStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + errorMaxLines: freezed == errorMaxLines + ? _self.errorMaxLines + : errorMaxLines // ignore: cast_nullable_to_non_nullable + as int?, + floatingLabelBehavior: freezed == floatingLabelBehavior + ? _self.floatingLabelBehavior + : floatingLabelBehavior // ignore: cast_nullable_to_non_nullable + as FloatingLabelBehavior?, + floatingLabelAlignment: freezed == floatingLabelAlignment + ? _self.floatingLabelAlignment + : floatingLabelAlignment // ignore: cast_nullable_to_non_nullable + as StacFloatingLabelAlignment?, + isDense: null == isDense + ? _self.isDense + : isDense // ignore: cast_nullable_to_non_nullable + as bool, + contentPadding: freezed == contentPadding + ? _self.contentPadding + : contentPadding // ignore: cast_nullable_to_non_nullable + as StacEdgeInsets?, + isCollapsed: null == isCollapsed + ? _self.isCollapsed + : isCollapsed // ignore: cast_nullable_to_non_nullable + as bool, + iconColor: freezed == iconColor + ? _self.iconColor + : iconColor // ignore: cast_nullable_to_non_nullable + as String?, + prefixStyle: freezed == prefixStyle + ? _self.prefixStyle + : prefixStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + prefixIconColor: freezed == prefixIconColor + ? _self.prefixIconColor + : prefixIconColor // ignore: cast_nullable_to_non_nullable + as String?, + suffixStyle: freezed == suffixStyle + ? _self.suffixStyle + : suffixStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + suffixIconColor: freezed == suffixIconColor + ? _self.suffixIconColor + : suffixIconColor // ignore: cast_nullable_to_non_nullable + as String?, + counterStyle: freezed == counterStyle + ? _self.counterStyle + : counterStyle // ignore: cast_nullable_to_non_nullable + as StacTextStyle?, + filled: null == filled + ? _self.filled + : filled // ignore: cast_nullable_to_non_nullable + as bool, + fillColor: freezed == fillColor + ? _self.fillColor + : fillColor // ignore: cast_nullable_to_non_nullable + as String?, + activeIndicatorBorder: freezed == activeIndicatorBorder + ? _self.activeIndicatorBorder + : activeIndicatorBorder // ignore: cast_nullable_to_non_nullable + as StacBorderSide?, + outlineBorder: freezed == outlineBorder + ? _self.outlineBorder + : outlineBorder // ignore: cast_nullable_to_non_nullable + as StacBorderSide?, + focusColor: freezed == focusColor + ? _self.focusColor + : focusColor // ignore: cast_nullable_to_non_nullable + as String?, + hoverColor: freezed == hoverColor + ? _self.hoverColor + : hoverColor // ignore: cast_nullable_to_non_nullable + as String?, + errorBorder: freezed == errorBorder + ? _self.errorBorder + : errorBorder // ignore: cast_nullable_to_non_nullable + as StacInputBorder?, + focusedBorder: freezed == focusedBorder + ? _self.focusedBorder + : focusedBorder // ignore: cast_nullable_to_non_nullable + as StacInputBorder?, + focusedErrorBorder: freezed == focusedErrorBorder + ? _self.focusedErrorBorder + : focusedErrorBorder // ignore: cast_nullable_to_non_nullable + as StacInputBorder?, + disabledBorder: freezed == disabledBorder + ? _self.disabledBorder + : disabledBorder // ignore: cast_nullable_to_non_nullable + as StacInputBorder?, + enabledBorder: freezed == enabledBorder + ? _self.enabledBorder + : enabledBorder // ignore: cast_nullable_to_non_nullable + as StacInputBorder?, + border: freezed == border + ? _self.border + : border // ignore: cast_nullable_to_non_nullable + as StacInputBorder?, + alignLabelWithHint: null == alignLabelWithHint + ? _self.alignLabelWithHint + : alignLabelWithHint // ignore: cast_nullable_to_non_nullable + as bool, + constraints: freezed == constraints + ? _self.constraints + : constraints // ignore: cast_nullable_to_non_nullable + as StacBoxConstraints?, + )); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get labelStyle { + if (_self.labelStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.labelStyle!, (value) { + return _then(_self.copyWith(labelStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get floatingLabelStyle { + if (_self.floatingLabelStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.floatingLabelStyle!, (value) { + return _then(_self.copyWith(floatingLabelStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get helperStyle { + if (_self.helperStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.helperStyle!, (value) { + return _then(_self.copyWith(helperStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get hintStyle { + if (_self.hintStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.hintStyle!, (value) { + return _then(_self.copyWith(hintStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get errorStyle { + if (_self.errorStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.errorStyle!, (value) { + return _then(_self.copyWith(errorStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacEdgeInsetsCopyWith<$Res>? get contentPadding { + if (_self.contentPadding == null) { + return null; + } + + return $StacEdgeInsetsCopyWith<$Res>(_self.contentPadding!, (value) { + return _then(_self.copyWith(contentPadding: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get prefixStyle { + if (_self.prefixStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.prefixStyle!, (value) { + return _then(_self.copyWith(prefixStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get suffixStyle { + if (_self.suffixStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.suffixStyle!, (value) { + return _then(_self.copyWith(suffixStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacTextStyleCopyWith<$Res>? get counterStyle { + if (_self.counterStyle == null) { + return null; + } + + return $StacTextStyleCopyWith<$Res>(_self.counterStyle!, (value) { + return _then(_self.copyWith(counterStyle: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacBorderSideCopyWith<$Res>? get activeIndicatorBorder { + if (_self.activeIndicatorBorder == null) { + return null; + } + + return $StacBorderSideCopyWith<$Res>(_self.activeIndicatorBorder!, (value) { + return _then(_self.copyWith(activeIndicatorBorder: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacBorderSideCopyWith<$Res>? get outlineBorder { + if (_self.outlineBorder == null) { + return null; + } + + return $StacBorderSideCopyWith<$Res>(_self.outlineBorder!, (value) { + return _then(_self.copyWith(outlineBorder: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacInputBorderCopyWith<$Res>? get errorBorder { + if (_self.errorBorder == null) { + return null; + } + + return $StacInputBorderCopyWith<$Res>(_self.errorBorder!, (value) { + return _then(_self.copyWith(errorBorder: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacInputBorderCopyWith<$Res>? get focusedBorder { + if (_self.focusedBorder == null) { + return null; + } + + return $StacInputBorderCopyWith<$Res>(_self.focusedBorder!, (value) { + return _then(_self.copyWith(focusedBorder: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacInputBorderCopyWith<$Res>? get focusedErrorBorder { + if (_self.focusedErrorBorder == null) { + return null; + } + + return $StacInputBorderCopyWith<$Res>(_self.focusedErrorBorder!, (value) { + return _then(_self.copyWith(focusedErrorBorder: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacInputBorderCopyWith<$Res>? get disabledBorder { + if (_self.disabledBorder == null) { + return null; + } + + return $StacInputBorderCopyWith<$Res>(_self.disabledBorder!, (value) { + return _then(_self.copyWith(disabledBorder: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacInputBorderCopyWith<$Res>? get enabledBorder { + if (_self.enabledBorder == null) { + return null; + } + + return $StacInputBorderCopyWith<$Res>(_self.enabledBorder!, (value) { + return _then(_self.copyWith(enabledBorder: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacInputBorderCopyWith<$Res>? get border { + if (_self.border == null) { + return null; + } + + return $StacInputBorderCopyWith<$Res>(_self.border!, (value) { + return _then(_self.copyWith(border: value)); + }); + } + + /// Create a copy of StacInputDecorationTheme + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $StacBoxConstraintsCopyWith<$Res>? get constraints { + if (_self.constraints == null) { + return null; + } + + return $StacBoxConstraintsCopyWith<$Res>(_self.constraints!, (value) { + return _then(_self.copyWith(constraints: value)); + }); + } +} + +// dart format on diff --git a/packages/stac/lib/src/parsers/widgets/stac_input_decoration_theme/stac_input_decoration_theme.g.dart b/packages/stac/lib/src/parsers/widgets/stac_input_decoration_theme/stac_input_decoration_theme.g.dart new file mode 100644 index 00000000..a3d562a4 --- /dev/null +++ b/packages/stac/lib/src/parsers/widgets/stac_input_decoration_theme/stac_input_decoration_theme.g.dart @@ -0,0 +1,140 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'stac_input_decoration_theme.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_StacInputDecorationTheme _$StacInputDecorationThemeFromJson( + Map json) => + _StacInputDecorationTheme( + labelStyle: json['labelStyle'] == null + ? null + : StacTextStyle.fromJson(json['labelStyle']), + floatingLabelStyle: json['floatingLabelStyle'] == null + ? null + : StacTextStyle.fromJson(json['floatingLabelStyle']), + helperStyle: json['helperStyle'] == null + ? null + : StacTextStyle.fromJson(json['helperStyle']), + helperMaxLines: (json['helperMaxLines'] as num?)?.toInt(), + hintStyle: json['hintStyle'] == null + ? null + : StacTextStyle.fromJson(json['hintStyle']), + errorStyle: json['errorStyle'] == null + ? null + : StacTextStyle.fromJson(json['errorStyle']), + errorMaxLines: (json['errorMaxLines'] as num?)?.toInt(), + floatingLabelBehavior: $enumDecodeNullable( + _$FloatingLabelBehaviorEnumMap, json['floatingLabelBehavior']), + floatingLabelAlignment: $enumDecodeNullable( + _$StacFloatingLabelAlignmentEnumMap, json['floatingLabelAlignment']), + isDense: json['isDense'] as bool? ?? false, + contentPadding: json['contentPadding'] == null + ? null + : StacEdgeInsets.fromJson(json['contentPadding']), + isCollapsed: json['isCollapsed'] as bool? ?? false, + iconColor: json['iconColor'] as String?, + prefixStyle: json['prefixStyle'] == null + ? null + : StacTextStyle.fromJson(json['prefixStyle']), + prefixIconColor: json['prefixIconColor'] as String?, + suffixStyle: json['suffixStyle'] == null + ? null + : StacTextStyle.fromJson(json['suffixStyle']), + suffixIconColor: json['suffixIconColor'] as String?, + counterStyle: json['counterStyle'] == null + ? null + : StacTextStyle.fromJson(json['counterStyle']), + filled: json['filled'] as bool? ?? false, + fillColor: json['fillColor'] as String?, + activeIndicatorBorder: json['activeIndicatorBorder'] == null + ? null + : StacBorderSide.fromJson( + json['activeIndicatorBorder'] as Map), + outlineBorder: json['outlineBorder'] == null + ? null + : StacBorderSide.fromJson( + json['outlineBorder'] as Map), + focusColor: json['focusColor'] as String?, + hoverColor: json['hoverColor'] as String?, + errorBorder: json['errorBorder'] == null + ? null + : StacInputBorder.fromJson( + json['errorBorder'] as Map), + focusedBorder: json['focusedBorder'] == null + ? null + : StacInputBorder.fromJson( + json['focusedBorder'] as Map), + focusedErrorBorder: json['focusedErrorBorder'] == null + ? null + : StacInputBorder.fromJson( + json['focusedErrorBorder'] as Map), + disabledBorder: json['disabledBorder'] == null + ? null + : StacInputBorder.fromJson( + json['disabledBorder'] as Map), + enabledBorder: json['enabledBorder'] == null + ? null + : StacInputBorder.fromJson( + json['enabledBorder'] as Map), + border: json['border'] == null + ? null + : StacInputBorder.fromJson(json['border'] as Map), + alignLabelWithHint: json['alignLabelWithHint'] as bool? ?? false, + constraints: json['constraints'] == null + ? null + : StacBoxConstraints.fromJson( + json['constraints'] as Map), + ); + +Map _$StacInputDecorationThemeToJson( + _StacInputDecorationTheme instance) => + { + 'labelStyle': instance.labelStyle, + 'floatingLabelStyle': instance.floatingLabelStyle, + 'helperStyle': instance.helperStyle, + 'helperMaxLines': instance.helperMaxLines, + 'hintStyle': instance.hintStyle, + 'errorStyle': instance.errorStyle, + 'errorMaxLines': instance.errorMaxLines, + 'floatingLabelBehavior': + _$FloatingLabelBehaviorEnumMap[instance.floatingLabelBehavior], + 'floatingLabelAlignment': + _$StacFloatingLabelAlignmentEnumMap[instance.floatingLabelAlignment], + 'isDense': instance.isDense, + 'contentPadding': instance.contentPadding, + 'isCollapsed': instance.isCollapsed, + 'iconColor': instance.iconColor, + 'prefixStyle': instance.prefixStyle, + 'prefixIconColor': instance.prefixIconColor, + 'suffixStyle': instance.suffixStyle, + 'suffixIconColor': instance.suffixIconColor, + 'counterStyle': instance.counterStyle, + 'filled': instance.filled, + 'fillColor': instance.fillColor, + 'activeIndicatorBorder': instance.activeIndicatorBorder, + 'outlineBorder': instance.outlineBorder, + 'focusColor': instance.focusColor, + 'hoverColor': instance.hoverColor, + 'errorBorder': instance.errorBorder, + 'focusedBorder': instance.focusedBorder, + 'focusedErrorBorder': instance.focusedErrorBorder, + 'disabledBorder': instance.disabledBorder, + 'enabledBorder': instance.enabledBorder, + 'border': instance.border, + 'alignLabelWithHint': instance.alignLabelWithHint, + 'constraints': instance.constraints, + }; + +const _$FloatingLabelBehaviorEnumMap = { + FloatingLabelBehavior.never: 'never', + FloatingLabelBehavior.auto: 'auto', + FloatingLabelBehavior.always: 'always', +}; + +const _$StacFloatingLabelAlignmentEnumMap = { + StacFloatingLabelAlignment.start: 'start', + StacFloatingLabelAlignment.center: 'center', +}; diff --git a/packages/stac/lib/src/parsers/stac_input_formatters/stac_input_formatter.dart b/packages/stac/lib/src/parsers/widgets/stac_input_formatters/stac_input_formatter.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_input_formatters/stac_input_formatter.dart rename to packages/stac/lib/src/parsers/widgets/stac_input_formatters/stac_input_formatter.dart diff --git a/packages/stac/lib/src/parsers/stac_input_formatters/stac_input_formatter.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_input_formatters/stac_input_formatter.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_input_formatters/stac_input_formatter.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_input_formatters/stac_input_formatter.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_input_formatters/stac_input_formatter.g.dart b/packages/stac/lib/src/parsers/widgets/stac_input_formatters/stac_input_formatter.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_input_formatters/stac_input_formatter.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_input_formatters/stac_input_formatter.g.dart diff --git a/packages/stac/lib/src/parsers/stac_limited_box/stac_limited_box.dart b/packages/stac/lib/src/parsers/widgets/stac_limited_box/stac_limited_box.dart similarity index 84% rename from packages/stac/lib/src/parsers/stac_limited_box/stac_limited_box.dart rename to packages/stac/lib/src/parsers/widgets/stac_limited_box/stac_limited_box.dart index 724abd20..21230e96 100644 --- a/packages/stac/lib/src/parsers/stac_limited_box/stac_limited_box.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_limited_box/stac_limited_box.dart @@ -1,6 +1,6 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -export 'package:stac/src/parsers/stac_limited_box/stac_limited_box_parser.dart'; +export 'package:stac/src/parsers/widgets/stac_limited_box/stac_limited_box_parser.dart'; part 'stac_limited_box.freezed.dart'; part 'stac_limited_box.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_limited_box/stac_limited_box.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_limited_box/stac_limited_box.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_limited_box/stac_limited_box.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_limited_box/stac_limited_box.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_limited_box/stac_limited_box.g.dart b/packages/stac/lib/src/parsers/widgets/stac_limited_box/stac_limited_box.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_limited_box/stac_limited_box.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_limited_box/stac_limited_box.g.dart diff --git a/packages/stac/lib/src/parsers/stac_limited_box/stac_limited_box_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_limited_box/stac_limited_box_parser.dart similarity index 89% rename from packages/stac/lib/src/parsers/stac_limited_box/stac_limited_box_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_limited_box/stac_limited_box_parser.dart index 373b40e6..a8efd691 100644 --- a/packages/stac/lib/src/parsers/stac_limited_box/stac_limited_box_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_limited_box/stac_limited_box_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_limited_box/stac_limited_box.dart'; +import 'package:stac/src/parsers/widgets/stac_limited_box/stac_limited_box.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_linear_progress_indicator/stac_linear_progress_indicator.dart b/packages/stac/lib/src/parsers/widgets/stac_linear_progress_indicator/stac_linear_progress_indicator.dart similarity index 86% rename from packages/stac/lib/src/parsers/stac_linear_progress_indicator/stac_linear_progress_indicator.dart rename to packages/stac/lib/src/parsers/widgets/stac_linear_progress_indicator/stac_linear_progress_indicator.dart index 6ef00de8..0e945be3 100644 --- a/packages/stac/lib/src/parsers/stac_linear_progress_indicator/stac_linear_progress_indicator.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_linear_progress_indicator/stac_linear_progress_indicator.dart @@ -1,7 +1,7 @@ import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:stac/src/parsers/parsers.dart'; -export 'package:stac/src/parsers/stac_linear_progress_indicator/stac_linear_progress_indicator_parser.dart'; +export 'stac_linear_progress_indicator_parser.dart'; part 'stac_linear_progress_indicator.freezed.dart'; part 'stac_linear_progress_indicator.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_linear_progress_indicator/stac_linear_progress_indicator.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_linear_progress_indicator/stac_linear_progress_indicator.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_linear_progress_indicator/stac_linear_progress_indicator.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_linear_progress_indicator/stac_linear_progress_indicator.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_linear_progress_indicator/stac_linear_progress_indicator.g.dart b/packages/stac/lib/src/parsers/widgets/stac_linear_progress_indicator/stac_linear_progress_indicator.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_linear_progress_indicator/stac_linear_progress_indicator.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_linear_progress_indicator/stac_linear_progress_indicator.g.dart diff --git a/packages/stac/lib/src/parsers/stac_linear_progress_indicator/stac_linear_progress_indicator_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_linear_progress_indicator/stac_linear_progress_indicator_parser.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_linear_progress_indicator/stac_linear_progress_indicator_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_linear_progress_indicator/stac_linear_progress_indicator_parser.dart diff --git a/packages/stac/lib/src/parsers/stac_list_tile/stac_list_tile.dart b/packages/stac/lib/src/parsers/widgets/stac_list_tile/stac_list_tile.dart similarity index 88% rename from packages/stac/lib/src/parsers/stac_list_tile/stac_list_tile.dart rename to packages/stac/lib/src/parsers/widgets/stac_list_tile/stac_list_tile.dart index a7304708..128d99cf 100644 --- a/packages/stac/lib/src/parsers/stac_list_tile/stac_list_tile.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_list_tile/stac_list_tile.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; -export 'package:stac/src/parsers/stac_list_tile/stac_list_tile_parser.dart'; +export 'stac_list_tile_parser.dart'; part 'stac_list_tile.freezed.dart'; part 'stac_list_tile.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_list_tile/stac_list_tile.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_list_tile/stac_list_tile.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_list_tile/stac_list_tile.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_list_tile/stac_list_tile.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_list_tile/stac_list_tile.g.dart b/packages/stac/lib/src/parsers/widgets/stac_list_tile/stac_list_tile.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_list_tile/stac_list_tile.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_list_tile/stac_list_tile.g.dart diff --git a/packages/stac/lib/src/parsers/stac_list_tile/stac_list_tile_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_list_tile/stac_list_tile_parser.dart similarity index 91% rename from packages/stac/lib/src/parsers/stac_list_tile/stac_list_tile_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_list_tile/stac_list_tile_parser.dart index 0afec435..bfb675d8 100644 --- a/packages/stac/lib/src/parsers/stac_list_tile/stac_list_tile_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_list_tile/stac_list_tile_parser.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_list_tile/stac_list_tile.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_list_tile/stac_list_tile.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_list_tile_theme_data/stac_list_tile_theme_data.dart b/packages/stac/lib/src/parsers/widgets/stac_list_tile_theme_data/stac_list_tile_theme_data.dart similarity index 82% rename from packages/stac/lib/src/parsers/stac_list_tile_theme_data/stac_list_tile_theme_data.dart rename to packages/stac/lib/src/parsers/widgets/stac_list_tile_theme_data/stac_list_tile_theme_data.dart index c427cc88..1784f9bb 100644 --- a/packages/stac/lib/src/parsers/stac_list_tile_theme_data/stac_list_tile_theme_data.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_list_tile_theme_data/stac_list_tile_theme_data.dart @@ -1,14 +1,12 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_border/stac_border.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_shadow/stac_shadow.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; -import 'package:stac/src/parsers/stac_visual_density/stac_visual_density.dart'; +import 'package:stac/src/parsers/widgets/stac_border/stac_border.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_shadow/stac_shadow.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_visual_density/stac_visual_density.dart'; import 'package:stac/src/utils/color_utils.dart'; -export 'package:stac/src/parsers/stac_visual_density/stac_visual_density.dart'; - part 'stac_list_tile_theme_data.freezed.dart'; part 'stac_list_tile_theme_data.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_list_tile_theme_data/stac_list_tile_theme_data.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_list_tile_theme_data/stac_list_tile_theme_data.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_list_tile_theme_data/stac_list_tile_theme_data.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_list_tile_theme_data/stac_list_tile_theme_data.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_list_tile_theme_data/stac_list_tile_theme_data.g.dart b/packages/stac/lib/src/parsers/widgets/stac_list_tile_theme_data/stac_list_tile_theme_data.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_list_tile_theme_data/stac_list_tile_theme_data.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_list_tile_theme_data/stac_list_tile_theme_data.g.dart diff --git a/packages/stac/lib/src/parsers/stac_list_view/stac_list_view.dart b/packages/stac/lib/src/parsers/widgets/stac_list_view/stac_list_view.dart similarity index 89% rename from packages/stac/lib/src/parsers/stac_list_view/stac_list_view.dart rename to packages/stac/lib/src/parsers/widgets/stac_list_view/stac_list_view.dart index 22805a72..3bfa7982 100644 --- a/packages/stac/lib/src/parsers/stac_list_view/stac_list_view.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_list_view/stac_list_view.dart @@ -1,10 +1,10 @@ import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; import 'package:stac/src/utils/stac_scroll_physics.dart'; -export 'package:stac/src/parsers/stac_list_view/stac_list_view_parser.dart'; +export 'stac_list_view_parser.dart'; part 'stac_list_view.freezed.dart'; part 'stac_list_view.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_list_view/stac_list_view.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_list_view/stac_list_view.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_list_view/stac_list_view.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_list_view/stac_list_view.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_list_view/stac_list_view.g.dart b/packages/stac/lib/src/parsers/widgets/stac_list_view/stac_list_view.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_list_view/stac_list_view.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_list_view/stac_list_view.g.dart diff --git a/packages/stac/lib/src/parsers/stac_list_view/stac_list_view_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_list_view/stac_list_view_parser.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_list_view/stac_list_view_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_list_view/stac_list_view_parser.dart index 0d30dab9..1504ce52 100644 --- a/packages/stac/lib/src/parsers/stac_list_view/stac_list_view_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_list_view/stac_list_view_parser.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_list_view/stac_list_view.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_list_view/stac_list_view.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_mouse_cursor/stac_mouse_cursor.dart b/packages/stac/lib/src/parsers/widgets/stac_mouse_cursor/stac_mouse_cursor.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_mouse_cursor/stac_mouse_cursor.dart rename to packages/stac/lib/src/parsers/widgets/stac_mouse_cursor/stac_mouse_cursor.dart diff --git a/packages/stac/lib/src/parsers/stac_navigation_bar_item/stac_bottom_navigation_bar_item.dart b/packages/stac/lib/src/parsers/widgets/stac_navigation_bar_item/stac_bottom_navigation_bar_item.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_navigation_bar_item/stac_bottom_navigation_bar_item.dart rename to packages/stac/lib/src/parsers/widgets/stac_navigation_bar_item/stac_bottom_navigation_bar_item.dart diff --git a/packages/stac/lib/src/parsers/stac_navigation_bar_item/stac_bottom_navigation_bar_item.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_navigation_bar_item/stac_bottom_navigation_bar_item.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_navigation_bar_item/stac_bottom_navigation_bar_item.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_navigation_bar_item/stac_bottom_navigation_bar_item.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_navigation_bar_item/stac_bottom_navigation_bar_item.g.dart b/packages/stac/lib/src/parsers/widgets/stac_navigation_bar_item/stac_bottom_navigation_bar_item.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_navigation_bar_item/stac_bottom_navigation_bar_item.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_navigation_bar_item/stac_bottom_navigation_bar_item.g.dart diff --git a/packages/stac/lib/src/parsers/stac_network_widget/stac_network_widget.dart b/packages/stac/lib/src/parsers/widgets/stac_network_widget/stac_network_widget.dart similarity index 83% rename from packages/stac/lib/src/parsers/stac_network_widget/stac_network_widget.dart rename to packages/stac/lib/src/parsers/widgets/stac_network_widget/stac_network_widget.dart index c3ad1260..af90fe4c 100644 --- a/packages/stac/lib/src/parsers/stac_network_widget/stac_network_widget.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_network_widget/stac_network_widget.dart @@ -1,5 +1,5 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/action_parsers/stac_network_request/stac_network_request.dart'; +import 'package:stac/src/parsers/actions/stac_network_request/stac_network_request.dart'; export 'stac_network_widget_parser.dart'; diff --git a/packages/stac/lib/src/parsers/stac_network_widget/stac_network_widget.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_network_widget/stac_network_widget.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_network_widget/stac_network_widget.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_network_widget/stac_network_widget.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_network_widget/stac_network_widget.g.dart b/packages/stac/lib/src/parsers/widgets/stac_network_widget/stac_network_widget.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_network_widget/stac_network_widget.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_network_widget/stac_network_widget.g.dart diff --git a/packages/stac/lib/src/parsers/stac_network_widget/stac_network_widget_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_network_widget/stac_network_widget_parser.dart similarity index 87% rename from packages/stac/lib/src/parsers/stac_network_widget/stac_network_widget_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_network_widget/stac_network_widget_parser.dart index be5b1d5b..000c2ee5 100644 --- a/packages/stac/lib/src/parsers/stac_network_widget/stac_network_widget_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_network_widget/stac_network_widget_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/cupertino.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_network_widget/stac_network_widget.dart'; +import 'package:stac/src/parsers/widgets/stac_network_widget/stac_network_widget.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_offset/stac_offset.dart b/packages/stac/lib/src/parsers/widgets/stac_offset/stac_offset.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_offset/stac_offset.dart rename to packages/stac/lib/src/parsers/widgets/stac_offset/stac_offset.dart diff --git a/packages/stac/lib/src/parsers/stac_offset/stac_offset.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_offset/stac_offset.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_offset/stac_offset.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_offset/stac_offset.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_offset/stac_offset.g.dart b/packages/stac/lib/src/parsers/widgets/stac_offset/stac_offset.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_offset/stac_offset.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_offset/stac_offset.g.dart diff --git a/packages/stac/lib/src/parsers/stac_opacity/stac_opacity.dart b/packages/stac/lib/src/parsers/widgets/stac_opacity/stac_opacity.dart similarity index 83% rename from packages/stac/lib/src/parsers/stac_opacity/stac_opacity.dart rename to packages/stac/lib/src/parsers/widgets/stac_opacity/stac_opacity.dart index 90c67c7c..7247b8fb 100644 --- a/packages/stac/lib/src/parsers/stac_opacity/stac_opacity.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_opacity/stac_opacity.dart @@ -1,6 +1,6 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -export 'package:stac/src/parsers/stac_opacity/stac_opacity_parser.dart'; +export 'package:stac/src/parsers/widgets/stac_opacity/stac_opacity_parser.dart'; part 'stac_opacity.freezed.dart'; part 'stac_opacity.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_opacity/stac_opacity.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_opacity/stac_opacity.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_opacity/stac_opacity.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_opacity/stac_opacity.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_opacity/stac_opacity.g.dart b/packages/stac/lib/src/parsers/widgets/stac_opacity/stac_opacity.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_opacity/stac_opacity.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_opacity/stac_opacity.g.dart diff --git a/packages/stac/lib/src/parsers/stac_opacity/stac_opacity_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_opacity/stac_opacity_parser.dart similarity index 89% rename from packages/stac/lib/src/parsers/stac_opacity/stac_opacity_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_opacity/stac_opacity_parser.dart index fae6fc8d..96b299ad 100644 --- a/packages/stac/lib/src/parsers/stac_opacity/stac_opacity_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_opacity/stac_opacity_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_opacity/stac_opacity.dart'; +import 'package:stac/src/parsers/widgets/stac_opacity/stac_opacity.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_outlined_button/stac_outlined_button.dart b/packages/stac/lib/src/parsers/widgets/stac_outlined_button/stac_outlined_button.dart similarity index 81% rename from packages/stac/lib/src/parsers/stac_outlined_button/stac_outlined_button.dart rename to packages/stac/lib/src/parsers/widgets/stac_outlined_button/stac_outlined_button.dart index 0bf9fe75..888ef8ac 100644 --- a/packages/stac/lib/src/parsers/stac_outlined_button/stac_outlined_button.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_outlined_button/stac_outlined_button.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_button_style/stac_button_style.dart'; +import 'package:stac/src/parsers/theme/stac_button_style/stac_button_style.dart'; -export 'package:stac/src/parsers/stac_outlined_button/stac_outlined_button_parser.dart'; +export 'stac_outlined_button_parser.dart'; part 'stac_outlined_button.freezed.dart'; part 'stac_outlined_button.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_outlined_button/stac_outlined_button.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_outlined_button/stac_outlined_button.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_outlined_button/stac_outlined_button.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_outlined_button/stac_outlined_button.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_outlined_button/stac_outlined_button.g.dart b/packages/stac/lib/src/parsers/widgets/stac_outlined_button/stac_outlined_button.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_outlined_button/stac_outlined_button.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_outlined_button/stac_outlined_button.g.dart diff --git a/packages/stac/lib/src/parsers/stac_outlined_button/stac_outlined_button_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_outlined_button/stac_outlined_button_parser.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_outlined_button/stac_outlined_button_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_outlined_button/stac_outlined_button_parser.dart index 41d2b41f..2d790e34 100644 --- a/packages/stac/lib/src/parsers/stac_outlined_button/stac_outlined_button_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_outlined_button/stac_outlined_button_parser.dart @@ -1,9 +1,11 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/parsers.dart'; +import 'package:stac/src/parsers/theme/stac_button_style/stac_button_style.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; +import 'stac_outlined_button.dart'; + class StacOutlinedButtonParser extends StacParser { const StacOutlinedButtonParser(); diff --git a/packages/stac/lib/src/parsers/stac_padding/stac_padding.dart b/packages/stac/lib/src/parsers/widgets/stac_padding/stac_padding.dart similarity index 73% rename from packages/stac/lib/src/parsers/stac_padding/stac_padding.dart rename to packages/stac/lib/src/parsers/widgets/stac_padding/stac_padding.dart index 77de1b98..44c528f1 100644 --- a/packages/stac/lib/src/parsers/stac_padding/stac_padding.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_padding/stac_padding.dart @@ -1,7 +1,7 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; -export 'package:stac/src/parsers/stac_padding/stac_padding_parser.dart'; +export 'stac_padding_parser.dart'; part 'stac_padding.freezed.dart'; part 'stac_padding.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_padding/stac_padding.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_padding/stac_padding.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_padding/stac_padding.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_padding/stac_padding.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_padding/stac_padding.g.dart b/packages/stac/lib/src/parsers/widgets/stac_padding/stac_padding.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_padding/stac_padding.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_padding/stac_padding.g.dart diff --git a/packages/stac/lib/src/parsers/stac_padding/stac_padding_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_padding/stac_padding_parser.dart similarity index 80% rename from packages/stac/lib/src/parsers/stac_padding/stac_padding_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_padding/stac_padding_parser.dart index f4ee35dd..881205d2 100644 --- a/packages/stac/lib/src/parsers/stac_padding/stac_padding_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_padding/stac_padding_parser.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_padding/stac_padding.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_padding/stac_padding.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_page_view/stac_page_view.dart b/packages/stac/lib/src/parsers/widgets/stac_page_view/stac_page_view.dart similarity index 93% rename from packages/stac/lib/src/parsers/stac_page_view/stac_page_view.dart rename to packages/stac/lib/src/parsers/widgets/stac_page_view/stac_page_view.dart index 717cb80c..736df788 100644 --- a/packages/stac/lib/src/parsers/stac_page_view/stac_page_view.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_page_view/stac_page_view.dart @@ -3,7 +3,7 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:stac/stac.dart'; -export 'package:stac/src/parsers/stac_page_view/stac_page_view_parser.dart'; +export 'stac_page_view_parser.dart'; part 'stac_page_view.freezed.dart'; part 'stac_page_view.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_page_view/stac_page_view.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_page_view/stac_page_view.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_page_view/stac_page_view.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_page_view/stac_page_view.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_page_view/stac_page_view.g.dart b/packages/stac/lib/src/parsers/widgets/stac_page_view/stac_page_view.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_page_view/stac_page_view.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_page_view/stac_page_view.g.dart diff --git a/packages/stac/lib/src/parsers/stac_page_view/stac_page_view_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_page_view/stac_page_view_parser.dart similarity index 96% rename from packages/stac/lib/src/parsers/stac_page_view/stac_page_view_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_page_view/stac_page_view_parser.dart index 5f494028..327b0271 100644 --- a/packages/stac/lib/src/parsers/stac_page_view/stac_page_view_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_page_view/stac_page_view_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_page_view/stac_page_view.dart'; +import 'package:stac/src/parsers/widgets/stac_page_view/stac_page_view.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_placeholder/stac_placeholder.dart b/packages/stac/lib/src/parsers/widgets/stac_placeholder/stac_placeholder.dart similarity index 86% rename from packages/stac/lib/src/parsers/stac_placeholder/stac_placeholder.dart rename to packages/stac/lib/src/parsers/widgets/stac_placeholder/stac_placeholder.dart index dc3cc364..d707b78b 100644 --- a/packages/stac/lib/src/parsers/stac_placeholder/stac_placeholder.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_placeholder/stac_placeholder.dart @@ -1,6 +1,6 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -export 'package:stac/src/parsers/stac_placeholder/stac_placeholder_parser.dart'; +export 'package:stac/src/parsers/widgets/stac_placeholder/stac_placeholder_parser.dart'; part 'stac_placeholder.freezed.dart'; part 'stac_placeholder.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_placeholder/stac_placeholder.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_placeholder/stac_placeholder.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_placeholder/stac_placeholder.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_placeholder/stac_placeholder.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_placeholder/stac_placeholder.g.dart b/packages/stac/lib/src/parsers/widgets/stac_placeholder/stac_placeholder.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_placeholder/stac_placeholder.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_placeholder/stac_placeholder.g.dart diff --git a/packages/stac/lib/src/parsers/stac_placeholder/stac_placeholder_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_placeholder/stac_placeholder_parser.dart similarity index 91% rename from packages/stac/lib/src/parsers/stac_placeholder/stac_placeholder_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_placeholder/stac_placeholder_parser.dart index 1dd1fdff..1bc426e9 100644 --- a/packages/stac/lib/src/parsers/stac_placeholder/stac_placeholder_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_placeholder/stac_placeholder_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_placeholder/stac_placeholder.dart'; +import 'package:stac/src/parsers/widgets/stac_placeholder/stac_placeholder.dart'; import 'package:stac/src/utils/utils.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_positioned/stac_positioned.dart b/packages/stac/lib/src/parsers/widgets/stac_positioned/stac_positioned.dart similarity index 86% rename from packages/stac/lib/src/parsers/stac_positioned/stac_positioned.dart rename to packages/stac/lib/src/parsers/widgets/stac_positioned/stac_positioned.dart index 0b32cbbc..bfca0ac4 100644 --- a/packages/stac/lib/src/parsers/stac_positioned/stac_positioned.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_positioned/stac_positioned.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_rect/stac_rect.dart'; +import 'package:stac/src/parsers/widgets/stac_rect/stac_rect.dart'; -export 'package:stac/src/parsers/stac_positioned/stac_positioned_parser.dart'; +export 'stac_positioned_parser.dart'; part 'stac_positioned.freezed.dart'; part 'stac_positioned.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_positioned/stac_positioned.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_positioned/stac_positioned.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_positioned/stac_positioned.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_positioned/stac_positioned.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_positioned/stac_positioned.g.dart b/packages/stac/lib/src/parsers/widgets/stac_positioned/stac_positioned.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_positioned/stac_positioned.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_positioned/stac_positioned.g.dart diff --git a/packages/stac/lib/src/parsers/stac_positioned/stac_positioned_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_positioned/stac_positioned_parser.dart similarity index 92% rename from packages/stac/lib/src/parsers/stac_positioned/stac_positioned_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_positioned/stac_positioned_parser.dart index 28fa1ca6..2197c3e9 100644 --- a/packages/stac/lib/src/parsers/stac_positioned/stac_positioned_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_positioned/stac_positioned_parser.dart @@ -1,7 +1,7 @@ import 'package:flutter/cupertino.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_positioned/stac_positioned.dart'; -import 'package:stac/src/parsers/stac_rect/stac_rect.dart'; +import 'package:stac/src/parsers/widgets/stac_positioned/stac_positioned.dart'; +import 'package:stac/src/parsers/widgets/stac_rect/stac_rect.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_radio/stac_radio.dart b/packages/stac/lib/src/parsers/widgets/stac_radio/stac_radio.dart similarity index 82% rename from packages/stac/lib/src/parsers/stac_radio/stac_radio.dart rename to packages/stac/lib/src/parsers/widgets/stac_radio/stac_radio.dart index 5d229dad..58f5ca1b 100644 --- a/packages/stac/lib/src/parsers/stac_radio/stac_radio.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_radio/stac_radio.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_mouse_cursor/stac_mouse_cursor.dart'; -import 'package:stac/stac.dart'; +import 'package:stac/src/parsers/widgets/stac_mouse_cursor/stac_mouse_cursor.dart'; +import 'package:stac/src/parsers/widgets/stac_visual_density/stac_visual_density.dart'; -export 'package:stac/src/parsers/stac_radio/stac_radio_parser.dart'; +export 'stac_radio_parser.dart'; part 'stac_radio.freezed.dart'; part 'stac_radio.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_radio/stac_radio.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_radio/stac_radio.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_radio/stac_radio.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_radio/stac_radio.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_radio/stac_radio.g.dart b/packages/stac/lib/src/parsers/widgets/stac_radio/stac_radio.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_radio/stac_radio.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_radio/stac_radio.g.dart diff --git a/packages/stac/lib/src/parsers/stac_radio/stac_radio_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_radio/stac_radio_parser.dart similarity index 95% rename from packages/stac/lib/src/parsers/stac_radio/stac_radio_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_radio/stac_radio_parser.dart index fe8fee25..bf6b3548 100644 --- a/packages/stac/lib/src/parsers/stac_radio/stac_radio_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_radio/stac_radio_parser.dart @@ -1,10 +1,10 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:stac/src/parsers/stac_radio_group/stac_radio_group_scope.dart'; +import 'package:stac/src/parsers/widgets/stac_radio_group/stac_radio_group_scope.dart'; +import 'package:stac/src/parsers/widgets/stac_visual_density/stac_visual_density.dart'; +import 'package:stac/src/utils/widget_type.dart'; import 'package:stac/stac.dart'; -import '../../utils/widget_type.dart'; - class StacRadioParser extends StacParser { const StacRadioParser(); diff --git a/packages/stac/lib/src/parsers/stac_radio_group/stac_radio_group.dart b/packages/stac/lib/src/parsers/widgets/stac_radio_group/stac_radio_group.dart similarity index 84% rename from packages/stac/lib/src/parsers/stac_radio_group/stac_radio_group.dart rename to packages/stac/lib/src/parsers/widgets/stac_radio_group/stac_radio_group.dart index f14cca33..190a124b 100644 --- a/packages/stac/lib/src/parsers/stac_radio_group/stac_radio_group.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_radio_group/stac_radio_group.dart @@ -1,6 +1,6 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -export 'package:stac/src/parsers/stac_radio_group/stac_radio_group_parser.dart'; +export 'package:stac/src/parsers/widgets/stac_radio_group/stac_radio_group_parser.dart'; part 'stac_radio_group.freezed.dart'; part 'stac_radio_group.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_radio_group/stac_radio_group.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_radio_group/stac_radio_group.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_radio_group/stac_radio_group.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_radio_group/stac_radio_group.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_radio_group/stac_radio_group.g.dart b/packages/stac/lib/src/parsers/widgets/stac_radio_group/stac_radio_group.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_radio_group/stac_radio_group.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_radio_group/stac_radio_group.g.dart diff --git a/packages/stac/lib/src/parsers/stac_radio_group/stac_radio_group_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_radio_group/stac_radio_group_parser.dart similarity index 93% rename from packages/stac/lib/src/parsers/stac_radio_group/stac_radio_group_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_radio_group/stac_radio_group_parser.dart index 17ca0622..84900b44 100644 --- a/packages/stac/lib/src/parsers/stac_radio_group/stac_radio_group_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_radio_group/stac_radio_group_parser.dart @@ -1,11 +1,9 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:stac/src/parsers/stac_radio_group/stac_radio_group_scope.dart'; +import 'package:stac/src/parsers/widgets/stac_radio_group/stac_radio_group_scope.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac/stac.dart'; -import '../stac_form/stac_form_scope.dart'; - class StacRadioGroupParser extends StacParser { const StacRadioGroupParser(); diff --git a/packages/stac/lib/src/parsers/stac_radio_group/stac_radio_group_scope.dart b/packages/stac/lib/src/parsers/widgets/stac_radio_group/stac_radio_group_scope.dart similarity index 95% rename from packages/stac/lib/src/parsers/stac_radio_group/stac_radio_group_scope.dart rename to packages/stac/lib/src/parsers/widgets/stac_radio_group/stac_radio_group_scope.dart index bbeb97fb..cf0148bd 100644 --- a/packages/stac/lib/src/parsers/stac_radio_group/stac_radio_group_scope.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_radio_group/stac_radio_group_scope.dart @@ -1,6 +1,5 @@ import 'package:flutter/widgets.dart'; - -import '../../utils/log.dart'; +import 'package:stac/src/utils/log.dart'; class StacRadioGroupScope extends InheritedWidget { const StacRadioGroupScope({ diff --git a/packages/stac/lib/src/parsers/stac_rect/stac_rect.dart b/packages/stac/lib/src/parsers/widgets/stac_rect/stac_rect.dart similarity index 96% rename from packages/stac/lib/src/parsers/stac_rect/stac_rect.dart rename to packages/stac/lib/src/parsers/widgets/stac_rect/stac_rect.dart index b97eb7a9..7b815ad5 100644 --- a/packages/stac/lib/src/parsers/stac_rect/stac_rect.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_rect/stac_rect.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_offset/stac_offset.dart'; +import 'package:stac/src/parsers/widgets/stac_offset/stac_offset.dart'; part 'stac_rect.freezed.dart'; part 'stac_rect.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_rect/stac_rect.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_rect/stac_rect.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_rect/stac_rect.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_rect/stac_rect.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_rect/stac_rect.g.dart b/packages/stac/lib/src/parsers/widgets/stac_rect/stac_rect.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_rect/stac_rect.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_rect/stac_rect.g.dart diff --git a/packages/stac/lib/src/parsers/stac_rect_tween/stac_rect_tween.dart b/packages/stac/lib/src/parsers/widgets/stac_rect_tween/stac_rect_tween.dart similarity index 93% rename from packages/stac/lib/src/parsers/stac_rect_tween/stac_rect_tween.dart rename to packages/stac/lib/src/parsers/widgets/stac_rect_tween/stac_rect_tween.dart index 4fa5ee7e..82f3d3b9 100644 --- a/packages/stac/lib/src/parsers/stac_rect_tween/stac_rect_tween.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_rect_tween/stac_rect_tween.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_rect/stac_rect.dart'; +import 'package:stac/src/parsers/widgets/stac_rect/stac_rect.dart'; part 'stac_rect_tween.freezed.dart'; part 'stac_rect_tween.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_rect_tween/stac_rect_tween.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_rect_tween/stac_rect_tween.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_rect_tween/stac_rect_tween.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_rect_tween/stac_rect_tween.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_rect_tween/stac_rect_tween.g.dart b/packages/stac/lib/src/parsers/widgets/stac_rect_tween/stac_rect_tween.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_rect_tween/stac_rect_tween.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_rect_tween/stac_rect_tween.g.dart diff --git a/packages/stac/lib/src/parsers/stac_refresh_indicator/stac_refresh_indicator.dart b/packages/stac/lib/src/parsers/widgets/stac_refresh_indicator/stac_refresh_indicator.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_refresh_indicator/stac_refresh_indicator.dart rename to packages/stac/lib/src/parsers/widgets/stac_refresh_indicator/stac_refresh_indicator.dart index 0c227464..8968ae85 100644 --- a/packages/stac/lib/src/parsers/stac_refresh_indicator/stac_refresh_indicator.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_refresh_indicator/stac_refresh_indicator.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -export 'package:stac/src/parsers/stac_refresh_indicator/stac_refresh_indicator_parser.dart'; +export 'stac_refresh_indicator_parser.dart'; part 'stac_refresh_indicator.freezed.dart'; part 'stac_refresh_indicator.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_refresh_indicator/stac_refresh_indicator.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_refresh_indicator/stac_refresh_indicator.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_refresh_indicator/stac_refresh_indicator.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_refresh_indicator/stac_refresh_indicator.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_refresh_indicator/stac_refresh_indicator.g.dart b/packages/stac/lib/src/parsers/widgets/stac_refresh_indicator/stac_refresh_indicator.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_refresh_indicator/stac_refresh_indicator.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_refresh_indicator/stac_refresh_indicator.g.dart diff --git a/packages/stac/lib/src/parsers/stac_refresh_indicator/stac_refresh_indicator_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_refresh_indicator/stac_refresh_indicator_parser.dart similarity index 96% rename from packages/stac/lib/src/parsers/stac_refresh_indicator/stac_refresh_indicator_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_refresh_indicator/stac_refresh_indicator_parser.dart index 08ca68e3..b0266197 100644 --- a/packages/stac/lib/src/parsers/stac_refresh_indicator/stac_refresh_indicator_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_refresh_indicator/stac_refresh_indicator_parser.dart @@ -3,7 +3,7 @@ import 'dart:convert'; import 'package:dio/dio.dart'; import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_refresh_indicator/stac_refresh_indicator.dart'; +import 'package:stac/src/parsers/widgets/stac_refresh_indicator/stac_refresh_indicator.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_rounded_rectangle_border/stac_rounded_rectangle_border.dart b/packages/stac/lib/src/parsers/widgets/stac_rounded_rectangle_border/stac_rounded_rectangle_border.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_rounded_rectangle_border/stac_rounded_rectangle_border.dart rename to packages/stac/lib/src/parsers/widgets/stac_rounded_rectangle_border/stac_rounded_rectangle_border.dart diff --git a/packages/stac/lib/src/parsers/stac_rounded_rectangle_border/stac_rounded_rectangle_border.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_rounded_rectangle_border/stac_rounded_rectangle_border.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_rounded_rectangle_border/stac_rounded_rectangle_border.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_rounded_rectangle_border/stac_rounded_rectangle_border.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_rounded_rectangle_border/stac_rounded_rectangle_border.g.dart b/packages/stac/lib/src/parsers/widgets/stac_rounded_rectangle_border/stac_rounded_rectangle_border.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_rounded_rectangle_border/stac_rounded_rectangle_border.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_rounded_rectangle_border/stac_rounded_rectangle_border.g.dart diff --git a/packages/stac/lib/src/parsers/stac_row/stac_row.dart b/packages/stac/lib/src/parsers/widgets/stac_row/stac_row.dart similarity index 91% rename from packages/stac/lib/src/parsers/stac_row/stac_row.dart rename to packages/stac/lib/src/parsers/widgets/stac_row/stac_row.dart index 0561fe59..b57f5840 100644 --- a/packages/stac/lib/src/parsers/stac_row/stac_row.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_row/stac_row.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -export 'package:stac/src/parsers/stac_row/stac_row_parser.dart'; +export 'package:stac/src/parsers/widgets/stac_row/stac_row_parser.dart'; part 'stac_row.freezed.dart'; part 'stac_row.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_row/stac_row.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_row/stac_row.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_row/stac_row.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_row/stac_row.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_row/stac_row.g.dart b/packages/stac/lib/src/parsers/widgets/stac_row/stac_row.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_row/stac_row.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_row/stac_row.g.dart diff --git a/packages/stac/lib/src/parsers/stac_row/stac_row_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_row/stac_row_parser.dart similarity index 93% rename from packages/stac/lib/src/parsers/stac_row/stac_row_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_row/stac_row_parser.dart index f0be9d58..1c553a03 100644 --- a/packages/stac/lib/src/parsers/stac_row/stac_row_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_row/stac_row_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_row/stac_row.dart'; +import 'package:stac/src/parsers/widgets/stac_row/stac_row.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_safe_area/stac_safe_area.dart b/packages/stac/lib/src/parsers/widgets/stac_safe_area/stac_safe_area.dart similarity index 80% rename from packages/stac/lib/src/parsers/stac_safe_area/stac_safe_area.dart rename to packages/stac/lib/src/parsers/widgets/stac_safe_area/stac_safe_area.dart index 74d6963b..c77eac6a 100644 --- a/packages/stac/lib/src/parsers/stac_safe_area/stac_safe_area.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_safe_area/stac_safe_area.dart @@ -1,7 +1,7 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; -export 'package:stac/src/parsers/stac_safe_area/stac_safe_area_parser.dart'; +export 'stac_safe_area_parser.dart'; part 'stac_safe_area.freezed.dart'; part 'stac_safe_area.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_safe_area/stac_safe_area.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_safe_area/stac_safe_area.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_safe_area/stac_safe_area.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_safe_area/stac_safe_area.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_safe_area/stac_safe_area.g.dart b/packages/stac/lib/src/parsers/widgets/stac_safe_area/stac_safe_area.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_safe_area/stac_safe_area.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_safe_area/stac_safe_area.g.dart diff --git a/packages/stac/lib/src/parsers/stac_safe_area/stac_safe_area_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_safe_area/stac_safe_area_parser.dart similarity index 91% rename from packages/stac/lib/src/parsers/stac_safe_area/stac_safe_area_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_safe_area/stac_safe_area_parser.dart index 53243fbb..7c8ea3c3 100644 --- a/packages/stac/lib/src/parsers/stac_safe_area/stac_safe_area_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_safe_area/stac_safe_area_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/widgets.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_scaffold/stac_scaffold.dart b/packages/stac/lib/src/parsers/widgets/stac_scaffold/stac_scaffold.dart similarity index 94% rename from packages/stac/lib/src/parsers/stac_scaffold/stac_scaffold.dart rename to packages/stac/lib/src/parsers/widgets/stac_scaffold/stac_scaffold.dart index 3b87b58e..ee451941 100644 --- a/packages/stac/lib/src/parsers/stac_scaffold/stac_scaffold.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_scaffold/stac_scaffold.dart @@ -2,7 +2,7 @@ import 'package:flutter/gestures.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:stac/src/utils/button_utils.dart'; -export 'package:stac/src/parsers/stac_scaffold/stac_scaffold_parser.dart'; +export 'stac_scaffold_parser.dart'; part 'stac_scaffold.freezed.dart'; part 'stac_scaffold.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_scaffold/stac_scaffold.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_scaffold/stac_scaffold.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_scaffold/stac_scaffold.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_scaffold/stac_scaffold.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_scaffold/stac_scaffold.g.dart b/packages/stac/lib/src/parsers/widgets/stac_scaffold/stac_scaffold.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_scaffold/stac_scaffold.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_scaffold/stac_scaffold.g.dart diff --git a/packages/stac/lib/src/parsers/stac_scaffold/stac_scaffold_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_scaffold/stac_scaffold_parser.dart similarity index 96% rename from packages/stac/lib/src/parsers/stac_scaffold/stac_scaffold_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_scaffold/stac_scaffold_parser.dart index 4f5353fd..98f3d5bb 100644 --- a/packages/stac/lib/src/parsers/stac_scaffold/stac_scaffold_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_scaffold/stac_scaffold_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_scaffold/stac_scaffold.dart'; +import 'package:stac/src/parsers/widgets/stac_scaffold/stac_scaffold.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_shadow/stac_shadow.dart b/packages/stac/lib/src/parsers/widgets/stac_shadow/stac_shadow.dart similarity index 91% rename from packages/stac/lib/src/parsers/stac_shadow/stac_shadow.dart rename to packages/stac/lib/src/parsers/widgets/stac_shadow/stac_shadow.dart index 5250bd0c..56ef7464 100644 --- a/packages/stac/lib/src/parsers/stac_shadow/stac_shadow.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_shadow/stac_shadow.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_offset/stac_offset.dart'; +import 'package:stac/src/parsers/widgets/stac_offset/stac_offset.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_shadow.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_shadow/stac_shadow.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_shadow/stac_shadow.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shadow/stac_shadow.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_shadow/stac_shadow.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_shadow/stac_shadow.g.dart b/packages/stac/lib/src/parsers/widgets/stac_shadow/stac_shadow.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shadow/stac_shadow.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_shadow/stac_shadow.g.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_beveled_rectangle_border.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_beveled_rectangle_border.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_beveled_rectangle_border.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_beveled_rectangle_border.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_beveled_rectangle_border.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_beveled_rectangle_border.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_beveled_rectangle_border.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_beveled_rectangle_border.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_beveled_rectangle_border.g.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_beveled_rectangle_border.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_beveled_rectangle_border.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_beveled_rectangle_border.g.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_circle_border.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_circle_border.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_circle_border.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_circle_border.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_circle_border.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_circle_border.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_circle_border.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_circle_border.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_circle_border.g.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_circle_border.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_circle_border.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_circle_border.g.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_continous_rectangle_border.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_continous_rectangle_border.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_continous_rectangle_border.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_continous_rectangle_border.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_continous_rectangle_border.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_continous_rectangle_border.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_continous_rectangle_border.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_continous_rectangle_border.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_continous_rectangle_border.g.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_continous_rectangle_border.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_continous_rectangle_border.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_continous_rectangle_border.g.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_rounded_rectangle_border.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_rounded_rectangle_border.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_rounded_rectangle_border.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_rounded_rectangle_border.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_rounded_rectangle_border.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_rounded_rectangle_border.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_rounded_rectangle_border.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_rounded_rectangle_border.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_rounded_rectangle_border.g.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_rounded_rectangle_border.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_rounded_rectangle_border.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_rounded_rectangle_border.g.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_shape_border.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_shape_border.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_shape_border.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_shape_border.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_shape_border.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_shape_border.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_shape_border.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_shape_border.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_shape_border/stac_shape_border.g.dart b/packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_shape_border.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_shape_border/stac_shape_border.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_shape_border/stac_shape_border.g.dart diff --git a/packages/stac/lib/src/parsers/stac_single_child_scroll_view/stac_single_child_scroll_view.dart b/packages/stac/lib/src/parsers/widgets/stac_single_child_scroll_view/stac_single_child_scroll_view.dart similarity index 93% rename from packages/stac/lib/src/parsers/stac_single_child_scroll_view/stac_single_child_scroll_view.dart rename to packages/stac/lib/src/parsers/widgets/stac_single_child_scroll_view/stac_single_child_scroll_view.dart index b9ed13ee..ab9f5cae 100644 --- a/packages/stac/lib/src/parsers/stac_single_child_scroll_view/stac_single_child_scroll_view.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_single_child_scroll_view/stac_single_child_scroll_view.dart @@ -1,7 +1,7 @@ import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; import 'package:stac/src/utils/stac_scroll_physics.dart'; export 'stac_single_child_scroll_view_parser.dart'; diff --git a/packages/stac/lib/src/parsers/stac_single_child_scroll_view/stac_single_child_scroll_view.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_single_child_scroll_view/stac_single_child_scroll_view.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_single_child_scroll_view/stac_single_child_scroll_view.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_single_child_scroll_view/stac_single_child_scroll_view.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_single_child_scroll_view/stac_single_child_scroll_view.g.dart b/packages/stac/lib/src/parsers/widgets/stac_single_child_scroll_view/stac_single_child_scroll_view.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_single_child_scroll_view/stac_single_child_scroll_view.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_single_child_scroll_view/stac_single_child_scroll_view.g.dart diff --git a/packages/stac/lib/src/parsers/stac_single_child_scroll_view/stac_single_child_scroll_view_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_single_child_scroll_view/stac_single_child_scroll_view_parser.dart similarity index 85% rename from packages/stac/lib/src/parsers/stac_single_child_scroll_view/stac_single_child_scroll_view_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_single_child_scroll_view/stac_single_child_scroll_view_parser.dart index 307881c8..2412f842 100644 --- a/packages/stac/lib/src/parsers/stac_single_child_scroll_view/stac_single_child_scroll_view_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_single_child_scroll_view/stac_single_child_scroll_view_parser.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_single_child_scroll_view/stac_single_child_scroll_view.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_single_child_scroll_view/stac_single_child_scroll_view.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_size/stac_size.dart b/packages/stac/lib/src/parsers/widgets/stac_size/stac_size.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_size/stac_size.dart rename to packages/stac/lib/src/parsers/widgets/stac_size/stac_size.dart diff --git a/packages/stac/lib/src/parsers/stac_size/stac_size.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_size/stac_size.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_size/stac_size.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_size/stac_size.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_size/stac_size.g.dart b/packages/stac/lib/src/parsers/widgets/stac_size/stac_size.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_size/stac_size.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_size/stac_size.g.dart diff --git a/packages/stac/lib/src/parsers/stac_sized_box/stac_sized_box.dart b/packages/stac/lib/src/parsers/widgets/stac_sized_box/stac_sized_box.dart similarity index 83% rename from packages/stac/lib/src/parsers/stac_sized_box/stac_sized_box.dart rename to packages/stac/lib/src/parsers/widgets/stac_sized_box/stac_sized_box.dart index 056fef21..8d00fc6e 100644 --- a/packages/stac/lib/src/parsers/stac_sized_box/stac_sized_box.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_sized_box/stac_sized_box.dart @@ -1,6 +1,6 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -export 'package:stac/src/parsers/stac_sized_box/stac_sized_box_parser.dart'; +export 'package:stac/src/parsers/widgets/stac_sized_box/stac_sized_box_parser.dart'; part 'stac_sized_box.freezed.dart'; part 'stac_sized_box.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_sized_box/stac_sized_box.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_sized_box/stac_sized_box.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_sized_box/stac_sized_box.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_sized_box/stac_sized_box.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_sized_box/stac_sized_box.g.dart b/packages/stac/lib/src/parsers/widgets/stac_sized_box/stac_sized_box.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_sized_box/stac_sized_box.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_sized_box/stac_sized_box.g.dart diff --git a/packages/stac/lib/src/parsers/stac_sized_box/stac_sized_box_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_sized_box/stac_sized_box_parser.dart similarity index 89% rename from packages/stac/lib/src/parsers/stac_sized_box/stac_sized_box_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_sized_box/stac_sized_box_parser.dart index b529e756..a02dcd8b 100644 --- a/packages/stac/lib/src/parsers/stac_sized_box/stac_sized_box_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_sized_box/stac_sized_box_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_sized_box/stac_sized_box.dart'; +import 'package:stac/src/parsers/widgets/stac_sized_box/stac_sized_box.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_slider/stac_slider.dart b/packages/stac/lib/src/parsers/widgets/stac_slider/stac_slider.dart similarity index 87% rename from packages/stac/lib/src/parsers/stac_slider/stac_slider.dart rename to packages/stac/lib/src/parsers/widgets/stac_slider/stac_slider.dart index 77663a04..f9e6d095 100644 --- a/packages/stac/lib/src/parsers/stac_slider/stac_slider.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_slider/stac_slider.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_mouse_cursor/stac_mouse_cursor.dart'; +import 'package:stac/src/parsers/widgets/stac_mouse_cursor/stac_mouse_cursor.dart'; -export 'package:stac/src/parsers/stac_slider/stac_slider_parser.dart'; +export 'stac_slider_parser.dart'; part 'stac_slider.freezed.dart'; part 'stac_slider.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_slider/stac_slider.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_slider/stac_slider.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_slider/stac_slider.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_slider/stac_slider.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_slider/stac_slider.g.dart b/packages/stac/lib/src/parsers/widgets/stac_slider/stac_slider.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_slider/stac_slider.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_slider/stac_slider.g.dart diff --git a/packages/stac/lib/src/parsers/stac_slider/stac_slider_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_slider/stac_slider_parser.dart similarity index 94% rename from packages/stac/lib/src/parsers/stac_slider/stac_slider_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_slider/stac_slider_parser.dart index 345c5ec0..f5c88245 100644 --- a/packages/stac/lib/src/parsers/stac_slider/stac_slider_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_slider/stac_slider_parser.dart @@ -1,9 +1,12 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; +import 'package:stac/src/framework/framework.dart'; +import 'package:stac/src/parsers/widgets/stac_form/stac_form_scope.dart'; +import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; -import 'package:stac/stac.dart'; +import 'package:stac_framework/stac_framework.dart'; -import '../stac_form/stac_form_scope.dart'; +import 'stac_slider.dart'; class StacSliderParser extends StacParser { const StacSliderParser(); diff --git a/packages/stac/lib/src/parsers/stac_sliver_app_bar/stac_sliver_app_bar.dart b/packages/stac/lib/src/parsers/widgets/stac_sliver_app_bar/stac_sliver_app_bar.dart similarity index 77% rename from packages/stac/lib/src/parsers/stac_sliver_app_bar/stac_sliver_app_bar.dart rename to packages/stac/lib/src/parsers/widgets/stac_sliver_app_bar/stac_sliver_app_bar.dart index 7d63f0e2..de44b499 100644 --- a/packages/stac/lib/src/parsers/stac_sliver_app_bar/stac_sliver_app_bar.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_sliver_app_bar/stac_sliver_app_bar.dart @@ -1,9 +1,12 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_icon_theme_data/stac_icon_theme_data.dart'; -import 'package:stac/src/parsers/stac_shape_border/stac_shape_border.dart'; -import 'package:stac/src/parsers/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.dart'; -import 'package:stac/stac.dart'; +import 'package:stac/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_shape_border/stac_shape_border.dart'; +import 'package:stac/src/parsers/widgets/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; + +export 'stac_sliver_app_bar_parser.dart'; part 'stac_sliver_app_bar.freezed.dart'; part 'stac_sliver_app_bar.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_sliver_app_bar/stac_sliver_app_bar.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_sliver_app_bar/stac_sliver_app_bar.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_sliver_app_bar/stac_sliver_app_bar.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_sliver_app_bar/stac_sliver_app_bar.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_sliver_app_bar/stac_sliver_app_bar.g.dart b/packages/stac/lib/src/parsers/widgets/stac_sliver_app_bar/stac_sliver_app_bar.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_sliver_app_bar/stac_sliver_app_bar.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_sliver_app_bar/stac_sliver_app_bar.g.dart diff --git a/packages/stac/lib/src/parsers/stac_sliver_app_bar/stac_sliver_app_bar_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_sliver_app_bar/stac_sliver_app_bar_parser.dart similarity index 78% rename from packages/stac/lib/src/parsers/stac_sliver_app_bar/stac_sliver_app_bar_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_sliver_app_bar/stac_sliver_app_bar_parser.dart index 62e8ee78..82de4278 100644 --- a/packages/stac/lib/src/parsers/stac_sliver_app_bar/stac_sliver_app_bar_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_sliver_app_bar/stac_sliver_app_bar_parser.dart @@ -1,9 +1,15 @@ import 'package:flutter/material.dart'; -import 'package:stac/src/parsers/stac_icon_theme_data/stac_icon_theme_data.dart'; -import 'package:stac/src/parsers/stac_shape_border/stac_shape_border.dart'; -import 'package:stac/src/parsers/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.dart'; +import 'package:stac/src/framework/framework.dart'; +import 'package:stac/src/parsers/theme/stac_icon_theme_data/stac_icon_theme_data.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_shape_border/stac_shape_border.dart'; +import 'package:stac/src/parsers/widgets/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; -import 'package:stac/stac.dart'; +import 'package:stac_framework/stac_framework.dart'; + +import 'stac_sliver_app_bar.dart'; class StacSliverAppBarParser extends StacParser { const StacSliverAppBarParser(); diff --git a/packages/stac/lib/src/parsers/stac_spacer/stac_spacer.dart b/packages/stac/lib/src/parsers/widgets/stac_spacer/stac_spacer.dart similarity index 81% rename from packages/stac/lib/src/parsers/stac_spacer/stac_spacer.dart rename to packages/stac/lib/src/parsers/widgets/stac_spacer/stac_spacer.dart index ec9435ab..80dbc87a 100644 --- a/packages/stac/lib/src/parsers/stac_spacer/stac_spacer.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_spacer/stac_spacer.dart @@ -1,6 +1,6 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -export 'package:stac/src/parsers/stac_spacer/stac_spacer_parser.dart'; +export 'package:stac/src/parsers/widgets/stac_spacer/stac_spacer_parser.dart'; part 'stac_spacer.freezed.dart'; part 'stac_spacer.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_spacer/stac_spacer.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_spacer/stac_spacer.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_spacer/stac_spacer.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_spacer/stac_spacer.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_spacer/stac_spacer.g.dart b/packages/stac/lib/src/parsers/widgets/stac_spacer/stac_spacer.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_spacer/stac_spacer.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_spacer/stac_spacer.g.dart diff --git a/packages/stac/lib/src/parsers/stac_spacer/stac_spacer_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_spacer/stac_spacer_parser.dart similarity index 87% rename from packages/stac/lib/src/parsers/stac_spacer/stac_spacer_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_spacer/stac_spacer_parser.dart index bd70dd22..4e74a55d 100644 --- a/packages/stac/lib/src/parsers/stac_spacer/stac_spacer_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_spacer/stac_spacer_parser.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:stac/src/parsers/stac_spacer/stac_spacer.dart'; +import 'package:stac/src/parsers/widgets/stac_spacer/stac_spacer.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_stack/stac_stack.dart b/packages/stac/lib/src/parsers/widgets/stac_stack/stac_stack.dart similarity index 89% rename from packages/stac/lib/src/parsers/stac_stack/stac_stack.dart rename to packages/stac/lib/src/parsers/widgets/stac_stack/stac_stack.dart index f36a2d50..33780e1d 100644 --- a/packages/stac/lib/src/parsers/stac_stack/stac_stack.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_stack/stac_stack.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:stac/src/parsers/parsers.dart'; -export 'package:stac/src/parsers/stac_stack/stac_stack_parser.dart'; +export 'package:stac/src/parsers/widgets/stac_stack/stac_stack_parser.dart'; part 'stac_stack.freezed.dart'; part 'stac_stack.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_stack/stac_stack.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_stack/stac_stack.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_stack/stac_stack.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_stack/stac_stack.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_stack/stac_stack.g.dart b/packages/stac/lib/src/parsers/widgets/stac_stack/stac_stack.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_stack/stac_stack.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_stack/stac_stack.g.dart diff --git a/packages/stac/lib/src/parsers/stac_stack/stac_stack_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_stack/stac_stack_parser.dart similarity index 91% rename from packages/stac/lib/src/parsers/stac_stack/stac_stack_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_stack/stac_stack_parser.dart index 1c6bdbc7..735989bc 100644 --- a/packages/stac/lib/src/parsers/stac_stack/stac_stack_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_stack/stac_stack_parser.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_stack/stac_stack.dart'; +import 'package:stac/src/parsers/widgets/stac_stack/stac_stack.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_switch/stac_switch.dart b/packages/stac/lib/src/parsers/widgets/stac_switch/stac_switch.dart similarity index 89% rename from packages/stac/lib/src/parsers/stac_switch/stac_switch.dart rename to packages/stac/lib/src/parsers/widgets/stac_switch/stac_switch.dart index 6f6a9229..d70b4ab8 100644 --- a/packages/stac/lib/src/parsers/stac_switch/stac_switch.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_switch/stac_switch.dart @@ -1,9 +1,9 @@ import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_material_color/stac_material_color.dart'; +import 'package:stac/src/parsers/theme/stac_material_color/stac_material_color.dart'; -export 'package:stac/src/parsers/stac_switch/stac_switch_parser.dart'; +export 'stac_switch_parser.dart'; part 'stac_switch.freezed.dart'; part 'stac_switch.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_switch/stac_switch.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_switch/stac_switch.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_switch/stac_switch.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_switch/stac_switch.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_switch/stac_switch.g.dart b/packages/stac/lib/src/parsers/widgets/stac_switch/stac_switch.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_switch/stac_switch.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_switch/stac_switch.g.dart diff --git a/packages/stac/lib/src/parsers/stac_switch/stac_switch_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_switch/stac_switch_parser.dart similarity index 93% rename from packages/stac/lib/src/parsers/stac_switch/stac_switch_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_switch/stac_switch_parser.dart index c064ab9f..1a4895b6 100644 --- a/packages/stac/lib/src/parsers/stac_switch/stac_switch_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_switch/stac_switch_parser.dart @@ -1,13 +1,16 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:stac/src/parsers/stac_material_color/stac_material_color.dart'; -import 'package:stac/src/utils/action_type.dart'; -import 'package:stac/stac.dart'; +import 'package:stac/src/framework/framework.dart'; +import 'package:stac/src/parsers/theme/stac_material_color/stac_material_color.dart'; +import 'package:stac/src/utils/color_utils.dart'; +import 'package:stac_framework/stac_framework.dart'; + +import 'stac_switch.dart'; class StacSwitchParser extends StacParser { const StacSwitchParser(); - /// The reason this type does not come from [ActionType] is because any value cannot be named as "switch". + /// The reason this type does not come from [WidgetType] is because any value cannot be named as "switch". @override String get type => "switch"; @@ -76,7 +79,7 @@ class _SwitchWidgetState extends State<_SwitchWidget> { return CupertinoSwitch( value: isSelected, onChanged: _onChanged, - activeTrackColor: model.activeColor.toColor(context), + activeTrackColor: model.activeColor?.toColor(context), inactiveTrackColor: model.trackColor?.parse(context), thumbColor: model.thumbColor?.parse(context), applyTheme: model.applyTheme, diff --git a/packages/stac/lib/src/parsers/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.dart b/packages/stac/lib/src/parsers/widgets/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.dart rename to packages/stac/lib/src/parsers/widgets/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.dart diff --git a/packages/stac/lib/src/parsers/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.g.dart b/packages/stac/lib/src/parsers/widgets/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_system_ui_olverlay_style/stac_system_ui_overlay_style.g.dart diff --git a/packages/stac/lib/src/parsers/stac_tab/stac_tab.dart b/packages/stac/lib/src/parsers/widgets/stac_tab/stac_tab.dart similarity index 75% rename from packages/stac/lib/src/parsers/stac_tab/stac_tab.dart rename to packages/stac/lib/src/parsers/widgets/stac_tab/stac_tab.dart index 03f8693a..aa8f4a7f 100644 --- a/packages/stac/lib/src/parsers/stac_tab/stac_tab.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_tab/stac_tab.dart @@ -1,7 +1,7 @@ import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; -export 'package:stac/src/parsers/stac_tab/stac_tab_parser.dart'; +export 'stac_tab_parser.dart'; part 'stac_tab.freezed.dart'; part 'stac_tab.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_tab/stac_tab.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_tab/stac_tab.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_tab/stac_tab.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_tab/stac_tab.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_tab/stac_tab.g.dart b/packages/stac/lib/src/parsers/widgets/stac_tab/stac_tab.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_tab/stac_tab.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_tab/stac_tab.g.dart diff --git a/packages/stac/lib/src/parsers/stac_tab/stac_tab_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_tab/stac_tab_parser.dart similarity index 82% rename from packages/stac/lib/src/parsers/stac_tab/stac_tab_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_tab/stac_tab_parser.dart index af57476a..5f149eef 100644 --- a/packages/stac/lib/src/parsers/stac_tab/stac_tab_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_tab/stac_tab_parser.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_tab/stac_tab.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_tab/stac_tab.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_tab_bar/stac_tab_bar.dart b/packages/stac/lib/src/parsers/widgets/stac_tab_bar/stac_tab_bar.dart similarity index 83% rename from packages/stac/lib/src/parsers/stac_tab_bar/stac_tab_bar.dart rename to packages/stac/lib/src/parsers/widgets/stac_tab_bar/stac_tab_bar.dart index 64b2bd56..24751ce0 100644 --- a/packages/stac/lib/src/parsers/stac_tab_bar/stac_tab_bar.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_tab_bar/stac_tab_bar.dart @@ -1,11 +1,11 @@ import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/stac_scroll_physics.dart'; -export 'package:stac/src/parsers/stac_tab_bar/stac_tab_bar_parser.dart'; +export 'stac_tab_bar_parser.dart'; part 'stac_tab_bar.freezed.dart'; part 'stac_tab_bar.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_tab_bar/stac_tab_bar.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_tab_bar/stac_tab_bar.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_tab_bar/stac_tab_bar.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_tab_bar/stac_tab_bar.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_tab_bar/stac_tab_bar.g.dart b/packages/stac/lib/src/parsers/widgets/stac_tab_bar/stac_tab_bar.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_tab_bar/stac_tab_bar.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_tab_bar/stac_tab_bar.g.dart diff --git a/packages/stac/lib/src/parsers/stac_tab_bar/stac_tab_bar_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_tab_bar/stac_tab_bar_parser.dart similarity index 87% rename from packages/stac/lib/src/parsers/stac_tab_bar/stac_tab_bar_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_tab_bar/stac_tab_bar_parser.dart index 04869245..21847b27 100644 --- a/packages/stac/lib/src/parsers/stac_tab_bar/stac_tab_bar_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_tab_bar/stac_tab_bar_parser.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_tab_bar/stac_tab_bar.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_tab_bar/stac_tab_bar.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_tab_bar_view/stac_tab_bar_view.dart b/packages/stac/lib/src/parsers/widgets/stac_tab_bar_view/stac_tab_bar_view.dart similarity index 90% rename from packages/stac/lib/src/parsers/stac_tab_bar_view/stac_tab_bar_view.dart rename to packages/stac/lib/src/parsers/widgets/stac_tab_bar_view/stac_tab_bar_view.dart index 475e2bea..8c6dd38d 100644 --- a/packages/stac/lib/src/parsers/stac_tab_bar_view/stac_tab_bar_view.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_tab_bar_view/stac_tab_bar_view.dart @@ -3,7 +3,7 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:stac/src/utils/stac_scroll_physics.dart'; -export 'package:stac/src/parsers/stac_tab_bar_view/stac_tab_bar_view_parser.dart'; +export 'stac_tab_bar_view_parser.dart'; part 'stac_tab_bar_view.freezed.dart'; part 'stac_tab_bar_view.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_tab_bar_view/stac_tab_bar_view.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_tab_bar_view/stac_tab_bar_view.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_tab_bar_view/stac_tab_bar_view.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_tab_bar_view/stac_tab_bar_view.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_tab_bar_view/stac_tab_bar_view.g.dart b/packages/stac/lib/src/parsers/widgets/stac_tab_bar_view/stac_tab_bar_view.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_tab_bar_view/stac_tab_bar_view.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_tab_bar_view/stac_tab_bar_view.g.dart diff --git a/packages/stac/lib/src/parsers/stac_tab_bar_view/stac_tab_bar_view_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_tab_bar_view/stac_tab_bar_view_parser.dart similarity index 92% rename from packages/stac/lib/src/parsers/stac_tab_bar_view/stac_tab_bar_view_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_tab_bar_view/stac_tab_bar_view_parser.dart index d028823e..c379a9e4 100644 --- a/packages/stac/lib/src/parsers/stac_tab_bar_view/stac_tab_bar_view_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_tab_bar_view/stac_tab_bar_view_parser.dart @@ -1,9 +1,10 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_tab_bar_view/stac_tab_bar_view.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; +import 'stac_tab_bar_view.dart'; + class StacTabBarViewParser extends StacParser { const StacTabBarViewParser({this.controller}); diff --git a/packages/stac/lib/src/parsers/stac_table/stac_table.dart b/packages/stac/lib/src/parsers/widgets/stac_table/stac_table.dart similarity index 96% rename from packages/stac/lib/src/parsers/stac_table/stac_table.dart rename to packages/stac/lib/src/parsers/widgets/stac_table/stac_table.dart index 04799e51..64e78165 100644 --- a/packages/stac/lib/src/parsers/stac_table/stac_table.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_table/stac_table.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:stac/stac.dart'; -export 'package:stac/src/parsers/stac_table/stac_table_parser.dart'; +export 'stac_table_parser.dart'; part 'stac_table.freezed.dart'; part 'stac_table.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_table/stac_table.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_table/stac_table.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_table/stac_table.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_table/stac_table.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_table/stac_table.g.dart b/packages/stac/lib/src/parsers/widgets/stac_table/stac_table.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_table/stac_table.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_table/stac_table.g.dart diff --git a/packages/stac/lib/src/parsers/stac_table/stac_table_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_table/stac_table_parser.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_table/stac_table_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_table/stac_table_parser.dart diff --git a/packages/stac/lib/src/parsers/stac_table_cell/stac_table_cell.dart b/packages/stac/lib/src/parsers/widgets/stac_table_cell/stac_table_cell.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_table_cell/stac_table_cell.dart rename to packages/stac/lib/src/parsers/widgets/stac_table_cell/stac_table_cell.dart diff --git a/packages/stac/lib/src/parsers/stac_table_cell/stac_table_cell.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_table_cell/stac_table_cell.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_table_cell/stac_table_cell.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_table_cell/stac_table_cell.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_table_cell/stac_table_cell.g.dart b/packages/stac/lib/src/parsers/widgets/stac_table_cell/stac_table_cell.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_table_cell/stac_table_cell.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_table_cell/stac_table_cell.g.dart diff --git a/packages/stac/lib/src/parsers/stac_table_cell/stac_table_cell_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_table_cell/stac_table_cell_parser.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_table_cell/stac_table_cell_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_table_cell/stac_table_cell_parser.dart diff --git a/packages/stac/lib/src/parsers/stac_text/stac_text.dart b/packages/stac/lib/src/parsers/widgets/stac_text/stac_text.dart similarity index 87% rename from packages/stac/lib/src/parsers/stac_text/stac_text.dart rename to packages/stac/lib/src/parsers/widgets/stac_text/stac_text.dart index 8a255050..8292d666 100644 --- a/packages/stac/lib/src/parsers/stac_text/stac_text.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_text/stac_text.dart @@ -1,8 +1,8 @@ import 'package:flutter/cupertino.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; -export 'package:stac/src/parsers/stac_text/stac_text_parser.dart'; +export 'stac_text_parser.dart'; part 'stac_text.freezed.dart'; part 'stac_text.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_text/stac_text.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_text/stac_text.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_text/stac_text.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_text/stac_text.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_text/stac_text.g.dart b/packages/stac/lib/src/parsers/widgets/stac_text/stac_text.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_text/stac_text.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_text/stac_text.g.dart diff --git a/packages/stac/lib/src/parsers/stac_text/stac_text_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_text/stac_text_parser.dart similarity index 91% rename from packages/stac/lib/src/parsers/stac_text/stac_text_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_text/stac_text_parser.dart index a897958e..03bee576 100644 --- a/packages/stac/lib/src/parsers/stac_text/stac_text_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_text/stac_text_parser.dart @@ -1,12 +1,13 @@ import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_text/stac_text.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; +import 'stac_text.dart'; + class StacTextParser extends StacParser { const StacTextParser(); diff --git a/packages/stac/lib/src/parsers/stac_text_button/stac_text_button.dart b/packages/stac/lib/src/parsers/widgets/stac_text_button/stac_text_button.dart similarity index 82% rename from packages/stac/lib/src/parsers/stac_text_button/stac_text_button.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_button/stac_text_button.dart index ad8933c6..eea05f4a 100644 --- a/packages/stac/lib/src/parsers/stac_text_button/stac_text_button.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_text_button/stac_text_button.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_button_style/stac_button_style.dart'; +import 'package:stac/src/parsers/theme/stac_button_style/stac_button_style.dart'; -export 'package:stac/src/parsers/stac_text_button/stac_text_button_parser.dart'; +export 'stac_text_button_parser.dart'; part 'stac_text_button.freezed.dart'; part 'stac_text_button.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_text_button/stac_text_button.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_text_button/stac_text_button.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_text_button/stac_text_button.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_button/stac_text_button.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_text_button/stac_text_button.g.dart b/packages/stac/lib/src/parsers/widgets/stac_text_button/stac_text_button.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_text_button/stac_text_button.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_button/stac_text_button.g.dart diff --git a/packages/stac/lib/src/parsers/stac_text_button/stac_text_button_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_text_button/stac_text_button_parser.dart similarity index 88% rename from packages/stac/lib/src/parsers/stac_text_button/stac_text_button_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_button/stac_text_button_parser.dart index 9d5e2bb2..b1144b26 100644 --- a/packages/stac/lib/src/parsers/stac_text_button/stac_text_button_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_text_button/stac_text_button_parser.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/parsers.dart'; +import 'package:stac/src/parsers/theme/stac_button_style/stac_button_style.dart'; +import 'package:stac/src/parsers/widgets/stac_text_button/stac_text_button.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_text_field/stac_text_field.dart b/packages/stac/lib/src/parsers/widgets/stac_text_field/stac_text_field.dart similarity index 80% rename from packages/stac/lib/src/parsers/stac_text_field/stac_text_field.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_field/stac_text_field.dart index b0810fac..241aa1e8 100644 --- a/packages/stac/lib/src/parsers/stac_text_field/stac_text_field.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_text_field/stac_text_field.dart @@ -1,11 +1,11 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_input_decoration/stac_input_decoration.dart'; -import 'package:stac/src/parsers/stac_input_formatters/stac_input_formatter.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_input_decoration/stac_input_decoration.dart'; +import 'package:stac/src/parsers/widgets/stac_input_formatters/stac_input_formatter.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/text_input_utils.dart'; -export 'package:stac/src/parsers/stac_text_field/stac_text_field_parser.dart'; +export 'stac_text_field_parser.dart'; part 'stac_text_field.freezed.dart'; part 'stac_text_field.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_text_field/stac_text_field.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_text_field/stac_text_field.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_text_field/stac_text_field.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_field/stac_text_field.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_text_field/stac_text_field.g.dart b/packages/stac/lib/src/parsers/widgets/stac_text_field/stac_text_field.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_text_field/stac_text_field.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_field/stac_text_field.g.dart diff --git a/packages/stac/lib/src/parsers/stac_text_field/stac_text_field_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_text_field/stac_text_field_parser.dart similarity index 84% rename from packages/stac/lib/src/parsers/stac_text_field/stac_text_field_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_field/stac_text_field_parser.dart index e5605086..8592936f 100644 --- a/packages/stac/lib/src/parsers/stac_text_field/stac_text_field_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_text_field/stac_text_field_parser.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; -import 'package:stac/src/parsers/stac_input_decoration/stac_input_decoration.dart'; -import 'package:stac/src/parsers/stac_input_formatters/stac_input_formatter.dart'; -import 'package:stac/src/parsers/stac_text_field/stac_text_field.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_input_decoration/stac_input_decoration.dart'; +import 'package:stac/src/parsers/widgets/stac_input_formatters/stac_input_formatter.dart'; +import 'package:stac/src/parsers/widgets/stac_text_field/stac_text_field.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; diff --git a/packages/stac/lib/src/parsers/stac_text_form_field/stac_text_form_field.dart b/packages/stac/lib/src/parsers/widgets/stac_text_form_field/stac_text_form_field.dart similarity index 79% rename from packages/stac/lib/src/parsers/stac_text_form_field/stac_text_form_field.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_form_field/stac_text_form_field.dart index 4030fada..ab446820 100644 --- a/packages/stac/lib/src/parsers/stac_text_form_field/stac_text_form_field.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_text_form_field/stac_text_form_field.dart @@ -1,14 +1,14 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_form_field_validator/stac_form_validator.dart'; -import 'package:stac/src/parsers/stac_input_decoration/stac_input_decoration.dart'; -import 'package:stac/src/parsers/stac_input_formatters/stac_input_formatter.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +import 'package:stac/src/parsers/widgets/stac_form_field_validator/stac_form_validator.dart'; +import 'package:stac/src/parsers/widgets/stac_input_decoration/stac_input_decoration.dart'; +import 'package:stac/src/parsers/widgets/stac_input_formatters/stac_input_formatter.dart'; +import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; import 'package:stac/src/utils/text_input_utils.dart'; -export 'package:stac/src/parsers/stac_text_form_field/stac_text_form_field_parser.dart'; +export 'stac_text_form_field_parser.dart'; part 'stac_text_form_field.freezed.dart'; part 'stac_text_form_field.g.dart'; diff --git a/packages/stac/lib/src/parsers/stac_text_form_field/stac_text_form_field.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_text_form_field/stac_text_form_field.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_text_form_field/stac_text_form_field.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_form_field/stac_text_form_field.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_text_form_field/stac_text_form_field.g.dart b/packages/stac/lib/src/parsers/widgets/stac_text_form_field/stac_text_form_field.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_text_form_field/stac_text_form_field.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_form_field/stac_text_form_field.g.dart diff --git a/packages/stac/lib/src/parsers/stac_text_form_field/stac_text_form_field_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_text_form_field/stac_text_form_field_parser.dart similarity index 89% rename from packages/stac/lib/src/parsers/stac_text_form_field/stac_text_form_field_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_form_field/stac_text_form_field_parser.dart index 2fbfec44..4edf8dfb 100644 --- a/packages/stac/lib/src/parsers/stac_text_form_field/stac_text_form_field_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_text_form_field/stac_text_form_field_parser.dart @@ -1,11 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:stac/src/parsers/stac_edge_insets/stac_edge_insets.dart'; -import 'package:stac/src/parsers/stac_form/stac_form_scope.dart'; -import 'package:stac/src/parsers/stac_form_field_validator/stac_form_validator.dart'; -import 'package:stac/src/parsers/stac_input_decoration/stac_input_decoration.dart'; -import 'package:stac/src/parsers/stac_input_formatters/stac_input_formatter.dart'; -import 'package:stac/src/parsers/stac_text_form_field/stac_text_form_field.dart'; -import 'package:stac/src/parsers/stac_text_style/stac_text_style.dart'; +import 'package:stac/src/parsers/parsers.dart'; import 'package:stac/src/utils/color_utils.dart'; import 'package:stac/src/utils/input_validations.dart'; import 'package:stac/src/utils/log.dart'; diff --git a/packages/stac/lib/src/parsers/stac_text_style/stac_text_style.dart b/packages/stac/lib/src/parsers/widgets/stac_text_style/stac_text_style.dart similarity index 97% rename from packages/stac/lib/src/parsers/stac_text_style/stac_text_style.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_style/stac_text_style.dart index d3024353..11e9eaff 100644 --- a/packages/stac/lib/src/parsers/stac_text_style/stac_text_style.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_text_style/stac_text_style.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; -import 'package:stac/src/parsers/stac_font_weight/stac_font_weight.dart'; +import 'package:stac/src/parsers/widgets/stac_font_weight/stac_font_weight.dart'; import 'package:stac/src/utils/color_utils.dart'; part 'stac_text_style.freezed.dart'; diff --git a/packages/stac/lib/src/parsers/stac_text_style/stac_text_style.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_text_style/stac_text_style.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_text_style/stac_text_style.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_style/stac_text_style.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_text_style/stac_text_style.g.dart b/packages/stac/lib/src/parsers/widgets/stac_text_style/stac_text_style.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_text_style/stac_text_style.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_text_style/stac_text_style.g.dart diff --git a/packages/stac/lib/src/parsers/stac_visual_density/stac_visual_density.dart b/packages/stac/lib/src/parsers/widgets/stac_visual_density/stac_visual_density.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_visual_density/stac_visual_density.dart rename to packages/stac/lib/src/parsers/widgets/stac_visual_density/stac_visual_density.dart diff --git a/packages/stac/lib/src/parsers/stac_visual_density/stac_visual_density.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_visual_density/stac_visual_density.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_visual_density/stac_visual_density.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_visual_density/stac_visual_density.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_visual_density/stac_visual_density.g.dart b/packages/stac/lib/src/parsers/widgets/stac_visual_density/stac_visual_density.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_visual_density/stac_visual_density.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_visual_density/stac_visual_density.g.dart diff --git a/packages/stac/lib/src/parsers/stac_wrap/stac_wrap.dart b/packages/stac/lib/src/parsers/widgets/stac_wrap/stac_wrap.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_wrap/stac_wrap.dart rename to packages/stac/lib/src/parsers/widgets/stac_wrap/stac_wrap.dart diff --git a/packages/stac/lib/src/parsers/stac_wrap/stac_wrap.freezed.dart b/packages/stac/lib/src/parsers/widgets/stac_wrap/stac_wrap.freezed.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_wrap/stac_wrap.freezed.dart rename to packages/stac/lib/src/parsers/widgets/stac_wrap/stac_wrap.freezed.dart diff --git a/packages/stac/lib/src/parsers/stac_wrap/stac_wrap.g.dart b/packages/stac/lib/src/parsers/widgets/stac_wrap/stac_wrap.g.dart similarity index 100% rename from packages/stac/lib/src/parsers/stac_wrap/stac_wrap.g.dart rename to packages/stac/lib/src/parsers/widgets/stac_wrap/stac_wrap.g.dart diff --git a/packages/stac/lib/src/parsers/stac_wrap/stac_wrap_parser.dart b/packages/stac/lib/src/parsers/widgets/stac_wrap/stac_wrap_parser.dart similarity index 94% rename from packages/stac/lib/src/parsers/stac_wrap/stac_wrap_parser.dart rename to packages/stac/lib/src/parsers/widgets/stac_wrap/stac_wrap_parser.dart index c7544943..a792f9da 100644 --- a/packages/stac/lib/src/parsers/stac_wrap/stac_wrap_parser.dart +++ b/packages/stac/lib/src/parsers/widgets/stac_wrap/stac_wrap_parser.dart @@ -1,9 +1,10 @@ import 'package:flutter/material.dart'; import 'package:stac/src/framework/framework.dart'; -import 'package:stac/src/parsers/stac_wrap/stac_wrap.dart'; import 'package:stac/src/utils/widget_type.dart'; import 'package:stac_framework/stac_framework.dart'; +import 'stac_wrap.dart'; + class StacWrapParser extends StacParser { const StacWrapParser(); diff --git a/packages/stac/lib/src/parsers/widgets/widgets.dart b/packages/stac/lib/src/parsers/widgets/widgets.dart new file mode 100644 index 00000000..05890cac --- /dev/null +++ b/packages/stac/lib/src/parsers/widgets/widgets.dart @@ -0,0 +1,93 @@ +export 'package:stac/src/parsers/widgets/stac_alert_dialog/stac_alert_dialog.dart'; +export 'package:stac/src/parsers/widgets/stac_align/stac_align.dart'; +export 'package:stac/src/parsers/widgets/stac_alignment/stac_alignment.dart'; +export 'package:stac/src/parsers/widgets/stac_alignment_directional/stac_alignment_directional.dart'; +export 'package:stac/src/parsers/widgets/stac_alignment_geometry/stac_alignment_geometry.dart'; +export 'package:stac/src/parsers/widgets/stac_app_bar/stac_app_bar.dart'; +export 'package:stac/src/parsers/widgets/stac_aspect_ratio/stac_aspect_ratio.dart'; +export 'package:stac/src/parsers/widgets/stac_auto_complete/stac_auto_complete.dart'; +export 'package:stac/src/parsers/widgets/stac_border/stac_border.dart'; +export 'package:stac/src/parsers/widgets/stac_border_radius/stac_border_radius.dart'; +export 'package:stac/src/parsers/widgets/stac_border_side/stac_border_side.dart'; +export 'package:stac/src/parsers/widgets/stac_bottom_navigation_bar/stac_bottom_navigation_bar.dart'; +export 'package:stac/src/parsers/widgets/stac_bottom_navigation_view/stac_bottom_navigation_view.dart'; +export 'package:stac/src/parsers/widgets/stac_box_constraints/stac_box_constraints.dart'; +export 'package:stac/src/parsers/widgets/stac_box_decoration/stac_box_decoration.dart'; +export 'package:stac/src/parsers/widgets/stac_box_shadow/stac_box_shadow.dart'; +export 'package:stac/src/parsers/widgets/stac_card/stac_card.dart'; +export 'package:stac/src/parsers/widgets/stac_carousel_view/stac_carousel_view.dart'; +export 'package:stac/src/parsers/widgets/stac_center/stac_center.dart'; +export 'package:stac/src/parsers/widgets/stac_check_box/stac_check_box.dart'; +export 'package:stac/src/parsers/widgets/stac_chip/stac_chip.dart'; +export 'package:stac/src/parsers/widgets/stac_circle_avatar/stac_circle_avatar.dart'; +export 'package:stac/src/parsers/widgets/stac_circular_progress_indicator/stac_circular_progress_indicator.dart'; +export 'package:stac/src/parsers/widgets/stac_color_scheme/stac_color_scheme.dart'; +export 'package:stac/src/parsers/widgets/stac_colored_box/stac_colored_box.dart'; +export 'package:stac/src/parsers/widgets/stac_column/stac_column.dart'; +export 'package:stac/src/parsers/widgets/stac_container/stac_container.dart'; +export 'package:stac/src/parsers/widgets/stac_custom_scroll_view/stac_custom_scroll_view.dart'; +export 'package:stac/src/parsers/widgets/stac_decoration_image/stac_decoration_image.dart'; +export 'package:stac/src/parsers/widgets/stac_default_bottom_navigation_controller/stac_default_bottom_navigation_controller.dart'; +export 'package:stac/src/parsers/widgets/stac_default_tab_controller/stac_default_tab_controller.dart'; +export 'package:stac/src/parsers/widgets/stac_divider/stac_divider.dart'; +export 'package:stac/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu.dart'; +export 'package:stac/src/parsers/widgets/stac_dropdown_menu_entry/stac_dropdown_menu_entry.dart'; +export 'package:stac/src/parsers/widgets/stac_duration/stac_duration.dart'; +export 'package:stac/src/parsers/widgets/stac_dynamic_view/stac_dynamic_view.dart'; +export 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart'; +export 'package:stac/src/parsers/widgets/stac_elevated_button/stac_elevated_button.dart'; +export 'package:stac/src/parsers/widgets/stac_expanded/stac_expanded.dart'; +export 'package:stac/src/parsers/widgets/stac_filled_button/stac_filled_button.dart'; +export 'package:stac/src/parsers/widgets/stac_fitted_box/stac_fitted_box.dart'; +export 'package:stac/src/parsers/widgets/stac_flexible/stac_flexible.dart'; +export 'package:stac/src/parsers/widgets/stac_floating_action_button/stac_floating_action_button.dart'; +export 'package:stac/src/parsers/widgets/stac_floating_action_button_theme_data/stac_floating_action_button_theme_data.dart'; +export 'package:stac/src/parsers/widgets/stac_font_weight/stac_font_weight.dart'; +export 'package:stac/src/parsers/widgets/stac_form/stac_form.dart'; +export 'package:stac/src/parsers/widgets/stac_form/stac_form_scope.dart'; +export 'package:stac/src/parsers/widgets/stac_form_field_validator/stac_form_validator.dart'; +export 'package:stac/src/parsers/widgets/stac_fractionally_sized_box/stac_fractionally_sized_box.dart'; +export 'package:stac/src/parsers/widgets/stac_gradient/stac_gradient.dart'; +export 'package:stac/src/parsers/widgets/stac_grid_view/stac_grid_view.dart'; +export 'package:stac/src/parsers/widgets/stac_hero/stac_hero.dart'; +export 'package:stac/src/parsers/widgets/stac_icon/stac_icon.dart'; +export 'package:stac/src/parsers/widgets/stac_icon_button/stac_icon_button.dart'; +export 'package:stac/src/parsers/widgets/stac_image/stac_image.dart'; +export 'package:stac/src/parsers/widgets/stac_input_decoration/stac_input_decoration.dart'; +export 'package:stac/src/parsers/widgets/stac_input_formatters/stac_input_formatter.dart'; +export 'package:stac/src/parsers/widgets/stac_limited_box/stac_limited_box.dart'; +export 'package:stac/src/parsers/widgets/stac_linear_progress_indicator/stac_linear_progress_indicator.dart'; +export 'package:stac/src/parsers/widgets/stac_list_tile/stac_list_tile.dart'; +export 'package:stac/src/parsers/widgets/stac_list_view/stac_list_view.dart'; +export 'package:stac/src/parsers/widgets/stac_network_widget/stac_network_widget.dart'; +export 'package:stac/src/parsers/widgets/stac_opacity/stac_opacity.dart'; +export 'package:stac/src/parsers/widgets/stac_outlined_button/stac_outlined_button.dart'; +export 'package:stac/src/parsers/widgets/stac_padding/stac_padding.dart'; +export 'package:stac/src/parsers/widgets/stac_page_view/stac_page_view.dart'; +export 'package:stac/src/parsers/widgets/stac_placeholder/stac_placeholder.dart'; +export 'package:stac/src/parsers/widgets/stac_positioned/stac_positioned.dart'; +export 'package:stac/src/parsers/widgets/stac_radio/stac_radio.dart'; +export 'package:stac/src/parsers/widgets/stac_radio_group/stac_radio_group.dart'; +export 'package:stac/src/parsers/widgets/stac_refresh_indicator/stac_refresh_indicator.dart'; +export 'package:stac/src/parsers/widgets/stac_row/stac_row.dart'; +export 'package:stac/src/parsers/widgets/stac_safe_area/stac_safe_area.dart'; +export 'package:stac/src/parsers/widgets/stac_scaffold/stac_scaffold.dart'; +export 'package:stac/src/parsers/widgets/stac_shape_border/stac_shape_border.dart'; +export 'package:stac/src/parsers/widgets/stac_single_child_scroll_view/stac_single_child_scroll_view.dart'; +export 'package:stac/src/parsers/widgets/stac_sized_box/stac_sized_box.dart'; +export 'package:stac/src/parsers/widgets/stac_slider/stac_slider.dart'; +export 'package:stac/src/parsers/widgets/stac_sliver_app_bar/stac_sliver_app_bar.dart'; +export 'package:stac/src/parsers/widgets/stac_spacer/stac_spacer.dart'; +export 'package:stac/src/parsers/widgets/stac_stack/stac_stack.dart'; +export 'package:stac/src/parsers/widgets/stac_switch/stac_switch.dart'; +export 'package:stac/src/parsers/widgets/stac_tab/stac_tab.dart'; +export 'package:stac/src/parsers/widgets/stac_tab_bar/stac_tab_bar.dart'; +export 'package:stac/src/parsers/widgets/stac_tab_bar_view/stac_tab_bar_view.dart'; +export 'package:stac/src/parsers/widgets/stac_table/stac_table.dart'; +export 'package:stac/src/parsers/widgets/stac_table_cell/stac_table_cell.dart'; +export 'package:stac/src/parsers/widgets/stac_text/stac_text.dart'; +export 'package:stac/src/parsers/widgets/stac_text_button/stac_text_button.dart'; +export 'package:stac/src/parsers/widgets/stac_text_field/stac_text_field.dart'; +export 'package:stac/src/parsers/widgets/stac_text_form_field/stac_text_form_field.dart'; +export 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart'; +export 'package:stac/src/parsers/widgets/stac_wrap/stac_wrap.dart'; diff --git a/packages/stac/lib/src/services/stac_network_service.dart b/packages/stac/lib/src/services/stac_network_service.dart index c0ba554b..f02b0c32 100644 --- a/packages/stac/lib/src/services/stac_network_service.dart +++ b/packages/stac/lib/src/services/stac_network_service.dart @@ -1,6 +1,6 @@ import 'package:dio/dio.dart'; import 'package:flutter/material.dart'; -import 'package:stac/src/action_parsers/stac_network_request/stac_network_request.dart'; +import 'package:stac/src/parsers/actions/stac_network_request/stac_network_request.dart'; import 'package:stac/src/framework/framework.dart'; class StacNetworkService { diff --git a/packages/stac/lib/stac.dart b/packages/stac/lib/stac.dart index ef6369b1..daea0b47 100644 --- a/packages/stac/lib/stac.dart +++ b/packages/stac/lib/stac.dart @@ -1,4 +1,4 @@ -export 'package:stac/src/action_parsers/action_parsers.dart'; +export 'package:stac/src/parsers/actions/actions.dart'; export 'package:stac/src/framework/framework.dart'; export 'package:stac/src/parsers/parsers.dart'; export 'package:stac/src/services/services.dart';