Showing
26 changed files
with
531 additions
and
82 deletions
.all-contributorsrc
deleted
100644 → 0
1 | -{ | ||
2 | - "files": [ | ||
3 | - "README.md" | ||
4 | - ], | ||
5 | - "imageSize": 100, | ||
6 | - "commit": false, | ||
7 | - "contributors": [ | ||
8 | - { | ||
9 | - "login": "jonataslaw", | ||
10 | - "name": "Jonny Borges", | ||
11 | - "avatar_url": "https://avatars2.githubusercontent.com/u/35742643?v=4", | ||
12 | - "profile": "https://github.com/jonataslaw", | ||
13 | - "contributions": [ | ||
14 | - "code" | ||
15 | - ] | ||
16 | - }, | ||
17 | - { | ||
18 | - "login": "Nipodemos", | ||
19 | - "name": "Nipodemos", | ||
20 | - "avatar_url": "https://avatars1.githubusercontent.com/u/11494727?v=4", | ||
21 | - "profile": "https://github.com/Nipodemos", | ||
22 | - "contributions": [ | ||
23 | - "doc" | ||
24 | - ] | ||
25 | - }, | ||
26 | - { | ||
27 | - "login": "RodBr", | ||
28 | - "name": "robr", | ||
29 | - "avatar_url": "https://avatars2.githubusercontent.com/u/13925313?v=4", | ||
30 | - "profile": "https://github.com/RodBr", | ||
31 | - "contributions": [ | ||
32 | - "tutorial" | ||
33 | - ] | ||
34 | - }, | ||
35 | - { | ||
36 | - "login": "chimon2000", | ||
37 | - "name": "Ryan", | ||
38 | - "avatar_url": "https://avatars1.githubusercontent.com/u/6907797?v=4", | ||
39 | - "profile": "http://ryanedge.page", | ||
40 | - "contributions": [ | ||
41 | - "test" | ||
42 | - ] | ||
43 | - }, | ||
44 | - { | ||
45 | - "login": "kluverua", | ||
46 | - "name": "kluverua", | ||
47 | - "avatar_url": "https://avatars0.githubusercontent.com/u/13339896?v=4", | ||
48 | - "profile": "https://github.com/kluverua", | ||
49 | - "contributions": [ | ||
50 | - "maintenance" | ||
51 | - ] | ||
52 | - } | ||
53 | - ], | ||
54 | - "contributorsPerLine": 7, | ||
55 | - "projectName": "get", | ||
56 | - "projectOwner": "jonataslaw", | ||
57 | - "repoType": "github", | ||
58 | - "repoHost": "https://github.com", | ||
59 | - "skipCi": true | ||
60 | -} |
@@ -6,5 +6,4 @@ export 'package:get_state_manager/get_state_manager.dart'; | @@ -6,5 +6,4 @@ export 'package:get_state_manager/get_state_manager.dart'; | ||
6 | export 'package:get_instance/get_instance.dart'; | 6 | export 'package:get_instance/get_instance.dart'; |
7 | export 'package:get_navigation/get_navigation.dart'; | 7 | export 'package:get_navigation/get_navigation.dart'; |
8 | export 'package:get_utils/get_utils.dart'; | 8 | export 'package:get_utils/get_utils.dart'; |
9 | - | ||
10 | export 'package:get_rx/get_rx.dart'; | 9 | export 'package:get_rx/get_rx.dart'; |
packages/get_core/analysis_options.yaml
0 → 100644
1 | +# Include option is buggy: | ||
2 | +# https://github.com/flutter/flutter/issues/62591 | ||
3 | +# In case the include issue gets fixed, lines below INCLUDE_FIX | ||
4 | +# can be removed | ||
5 | + | ||
6 | +# include: package:effective_dart/analysis_options.1.2.0.yaml | ||
7 | +analyzer: | ||
8 | + strong-mode: | ||
9 | + implicit-casts: false | ||
10 | +linter: | ||
11 | + rules: | ||
12 | + await_only_futures: true | ||
13 | + # This one is desirable, but that's a lot of work for now | ||
14 | + public_member_api_docs: false | ||
15 | + # Desirable, but would be breaking changes: | ||
16 | + avoid_positional_boolean_parameters: false | ||
17 | + constant_identifier_names: false | ||
18 | + include_file_not_found: false | ||
19 | + | ||
20 | + # INCLUDE_FIX (copy of effective dart 1.2.0) | ||
21 | + # STYLE | ||
22 | + camel_case_types: true | ||
23 | + camel_case_extensions: true | ||
24 | + library_names: true | ||
25 | + file_names: true | ||
26 | + library_prefixes: true | ||
27 | + non_constant_identifier_names: true | ||
28 | + directives_ordering: true | ||
29 | + lines_longer_than_80_chars: true # avoid | ||
30 | + curly_braces_in_flow_control_structures: true | ||
31 | + | ||
32 | + # DOCUMENTATION | ||
33 | + slash_for_doc_comments: true | ||
34 | + package_api_docs: true # prefer | ||
35 | + #- comment_references # Unused because https://github.com/dart-lang/sdk/issues/36974 | ||
36 | + | ||
37 | + # USAGE | ||
38 | + implementation_imports: true | ||
39 | + avoid_relative_lib_imports: true # prefer | ||
40 | + prefer_relative_imports: true # prefer | ||
41 | + prefer_adjacent_string_concatenation: true | ||
42 | + prefer_interpolation_to_compose_strings: true # prefer | ||
43 | + unnecessary_brace_in_string_interps: true # avoid | ||
44 | + prefer_collection_literals: true | ||
45 | + avoid_function_literals_in_foreach_calls: true # avoid | ||
46 | + prefer_iterable_whereType: true | ||
47 | + prefer_function_declarations_over_variables: true | ||
48 | + unnecessary_lambdas: true | ||
49 | + prefer_equal_for_default_values: true | ||
50 | + avoid_init_to_null: true | ||
51 | + unnecessary_getters_setters: true | ||
52 | + #- unnecessary_getters # prefer # Disabled pending fix: https://github.com/dart-lang/linter/issues/23 | ||
53 | + #- prefer_expression_function_bodies # consider | ||
54 | + unnecessary_this: true | ||
55 | + prefer_initializing_formals: true | ||
56 | + type_init_formals: true | ||
57 | + empty_constructor_bodies: true | ||
58 | + unnecessary_new: true | ||
59 | + unnecessary_const: true | ||
60 | + avoid_catches_without_on_clauses: true # avoid | ||
61 | + avoid_catching_errors: true | ||
62 | + use_rethrow_when_possible: true | ||
63 | + | ||
64 | + # DESIGN | ||
65 | + use_to_and_as_if_applicable: true # prefer | ||
66 | + one_member_abstracts: true # avoid | ||
67 | + avoid_classes_with_only_static_members: true # avoid | ||
68 | + prefer_mixin: true | ||
69 | + prefer_final_fields: true # prefer | ||
70 | + use_setters_to_change_properties: true | ||
71 | + avoid_setters_without_getters: true | ||
72 | + avoid_returning_null: true # avoid | ||
73 | + avoid_returning_this: true # avoid | ||
74 | + type_annotate_public_apis: true # prefer | ||
75 | + #- prefer_typing_uninitialized_variables # consider | ||
76 | + omit_local_variable_types: true # avoid | ||
77 | + avoid_types_on_closure_parameters: true # avoid | ||
78 | + avoid_return_types_on_setters: true # avoid | ||
79 | + prefer_generic_function_type_aliases: true | ||
80 | + avoid_private_typedef_functions: true # prefer | ||
81 | + #- use_function_type_syntax_for_parameters # consider | ||
82 | + hash_and_equals: true | ||
83 | + avoid_equals_and_hash_code_on_mutable_classes: true # avoid | ||
84 | + avoid_null_checks_in_equality_operators: true | ||
85 | + |
1 | +# Include option is buggy: | ||
2 | +# https://github.com/flutter/flutter/issues/62591 | ||
3 | +# In case the include issue gets fixed, lines below INCLUDE_FIX | ||
4 | +# can be removed | ||
5 | + | ||
6 | +# include: package:effective_dart/analysis_options.1.2.0.yaml | ||
7 | +analyzer: | ||
8 | + strong-mode: | ||
9 | + implicit-casts: false | ||
10 | +linter: | ||
11 | + rules: | ||
12 | + await_only_futures: true | ||
13 | + # This one is desirable, but that's a lot of work for now | ||
14 | + public_member_api_docs: false | ||
15 | + # Desirable, but would be breaking changes: | ||
16 | + avoid_positional_boolean_parameters: false | ||
17 | + constant_identifier_names: false | ||
18 | + include_file_not_found: false | ||
19 | + | ||
20 | + # INCLUDE_FIX (copy of effective dart 1.2.0) | ||
21 | + # STYLE | ||
22 | + camel_case_types: true | ||
23 | + camel_case_extensions: true | ||
24 | + library_names: true | ||
25 | + file_names: true | ||
26 | + library_prefixes: true | ||
27 | + non_constant_identifier_names: true | ||
28 | + directives_ordering: true | ||
29 | + lines_longer_than_80_chars: true # avoid | ||
30 | + curly_braces_in_flow_control_structures: true | ||
31 | + | ||
32 | + # DOCUMENTATION | ||
33 | + slash_for_doc_comments: true | ||
34 | + package_api_docs: true # prefer | ||
35 | + #- comment_references # Unused because https://github.com/dart-lang/sdk/issues/36974 | ||
36 | + | ||
37 | + # USAGE | ||
38 | + implementation_imports: true | ||
39 | + avoid_relative_lib_imports: true # prefer | ||
40 | + prefer_relative_imports: true # prefer | ||
41 | + prefer_adjacent_string_concatenation: true | ||
42 | + prefer_interpolation_to_compose_strings: true # prefer | ||
43 | + unnecessary_brace_in_string_interps: true # avoid | ||
44 | + prefer_collection_literals: true | ||
45 | + avoid_function_literals_in_foreach_calls: true # avoid | ||
46 | + prefer_iterable_whereType: true | ||
47 | + prefer_function_declarations_over_variables: true | ||
48 | + unnecessary_lambdas: true | ||
49 | + prefer_equal_for_default_values: true | ||
50 | + avoid_init_to_null: true | ||
51 | + unnecessary_getters_setters: true | ||
52 | + #- unnecessary_getters # prefer # Disabled pending fix: https://github.com/dart-lang/linter/issues/23 | ||
53 | + #- prefer_expression_function_bodies # consider | ||
54 | + unnecessary_this: true | ||
55 | + prefer_initializing_formals: true | ||
56 | + type_init_formals: true | ||
57 | + empty_constructor_bodies: true | ||
58 | + unnecessary_new: true | ||
59 | + unnecessary_const: true | ||
60 | + avoid_catches_without_on_clauses: true # avoid | ||
61 | + avoid_catching_errors: true | ||
62 | + use_rethrow_when_possible: true | ||
63 | + | ||
64 | + # DESIGN | ||
65 | + use_to_and_as_if_applicable: true # prefer | ||
66 | + one_member_abstracts: true # avoid | ||
67 | + avoid_classes_with_only_static_members: true # avoid | ||
68 | + prefer_mixin: true | ||
69 | + prefer_final_fields: true # prefer | ||
70 | + use_setters_to_change_properties: true | ||
71 | + avoid_setters_without_getters: true | ||
72 | + avoid_returning_null: true # avoid | ||
73 | + avoid_returning_this: true # avoid | ||
74 | + type_annotate_public_apis: true # prefer | ||
75 | + #- prefer_typing_uninitialized_variables # consider | ||
76 | + omit_local_variable_types: true # avoid | ||
77 | + avoid_types_on_closure_parameters: true # avoid | ||
78 | + avoid_return_types_on_setters: true # avoid | ||
79 | + prefer_generic_function_type_aliases: true | ||
80 | + avoid_private_typedef_functions: true # prefer | ||
81 | + #- use_function_type_syntax_for_parameters # consider | ||
82 | + hash_and_equals: true | ||
83 | + avoid_equals_and_hash_code_on_mutable_classes: true # avoid | ||
84 | + avoid_null_checks_in_equality_operators: true | ||
85 | + |
1 | import 'package:flutter/material.dart'; | 1 | import 'package:flutter/material.dart'; |
2 | import 'package:flutter/scheduler.dart'; | 2 | import 'package:flutter/scheduler.dart'; |
3 | import 'package:get_core/get_core.dart'; | 3 | import 'package:get_core/get_core.dart'; |
4 | -import 'package:get_navigation/get_navigation.dart'; | ||
5 | import 'package:get_state_manager/get_state_manager.dart'; | 4 | import 'package:get_state_manager/get_state_manager.dart'; |
6 | import 'package:get_utils/get_utils.dart'; | 5 | import 'package:get_utils/get_utils.dart'; |
6 | +import '../get_navigation.dart'; | ||
7 | import 'dialog/dialog_route.dart'; | 7 | import 'dialog/dialog_route.dart'; |
8 | import 'root/parse_route.dart'; | 8 | import 'root/parse_route.dart'; |
9 | import 'root/root_controller.dart'; | 9 | import 'root/root_controller.dart'; |
1 | import 'package:flutter/foundation.dart'; | 1 | import 'package:flutter/foundation.dart'; |
2 | import 'package:flutter/material.dart'; | 2 | import 'package:flutter/material.dart'; |
3 | import 'package:get_core/get_core.dart'; | 3 | import 'package:get_core/get_core.dart'; |
4 | -import 'package:get_navigation/get_navigation.dart'; | ||
5 | import 'package:get_state_manager/get_state_manager.dart'; | 4 | import 'package:get_state_manager/get_state_manager.dart'; |
6 | import 'package:get_utils/get_utils.dart'; | 5 | import 'package:get_utils/get_utils.dart'; |
6 | +import '../../get_navigation.dart'; | ||
7 | import 'root_controller.dart'; | 7 | import 'root_controller.dart'; |
8 | 8 | ||
9 | class GetMaterialApp extends StatelessWidget { | 9 | class GetMaterialApp extends StatelessWidget { |
@@ -6,8 +6,8 @@ import 'package:flutter/gestures.dart'; | @@ -6,8 +6,8 @@ import 'package:flutter/gestures.dart'; | ||
6 | import 'package:flutter/material.dart'; | 6 | import 'package:flutter/material.dart'; |
7 | import 'package:get_core/get_core.dart'; | 7 | import 'package:get_core/get_core.dart'; |
8 | import 'package:get_instance/get_instance.dart'; | 8 | import 'package:get_instance/get_instance.dart'; |
9 | -import 'package:get_navigation/get_navigation.dart'; | ||
10 | import 'package:get_utils/get_utils.dart'; | 9 | import 'package:get_utils/get_utils.dart'; |
10 | +import '../../get_navigation.dart'; | ||
11 | import 'custom_transition.dart'; | 11 | import 'custom_transition.dart'; |
12 | import 'default_transitions.dart'; | 12 | import 'default_transitions.dart'; |
13 | import 'transitions_type.dart'; | 13 | import 'transitions_type.dart'; |
1 | import 'package:flutter/widgets.dart'; | 1 | import 'package:flutter/widgets.dart'; |
2 | import 'package:get_core/get_core.dart'; | 2 | import 'package:get_core/get_core.dart'; |
3 | -import 'package:get_navigation/get_navigation.dart'; | 3 | +import '../../../get_navigation.dart'; |
4 | import '../../dialog/dialog_route.dart'; | 4 | import '../../dialog/dialog_route.dart'; |
5 | import '../../snackbar/snack_route.dart'; | 5 | import '../../snackbar/snack_route.dart'; |
6 | import '../default_route.dart'; | 6 | import '../default_route.dart'; |
@@ -3,7 +3,7 @@ import 'dart:ui'; | @@ -3,7 +3,7 @@ import 'dart:ui'; | ||
3 | import 'package:flutter/material.dart'; | 3 | import 'package:flutter/material.dart'; |
4 | import 'package:flutter/scheduler.dart'; | 4 | import 'package:flutter/scheduler.dart'; |
5 | import 'package:get_core/get_core.dart'; | 5 | import 'package:get_core/get_core.dart'; |
6 | -import 'package:get_navigation/get_navigation.dart'; | 6 | +import '../../get_navigation.dart'; |
7 | import 'snack_route.dart'; | 7 | import 'snack_route.dart'; |
8 | 8 | ||
9 | typedef SnackbarStatusCallback = void Function(SnackbarStatus status); | 9 | typedef SnackbarStatusCallback = void Function(SnackbarStatus status); |
packages/get_rx/analysis_options.yaml
0 → 100644
1 | +# Include option is buggy: | ||
2 | +# https://github.com/flutter/flutter/issues/62591 | ||
3 | +# In case the include issue gets fixed, lines below INCLUDE_FIX | ||
4 | +# can be removed | ||
5 | + | ||
6 | +# include: package:effective_dart/analysis_options.1.2.0.yaml | ||
7 | +analyzer: | ||
8 | + strong-mode: | ||
9 | + implicit-casts: false | ||
10 | +linter: | ||
11 | + rules: | ||
12 | + await_only_futures: true | ||
13 | + # This one is desirable, but that's a lot of work for now | ||
14 | + public_member_api_docs: false | ||
15 | + # Desirable, but would be breaking changes: | ||
16 | + avoid_positional_boolean_parameters: false | ||
17 | + constant_identifier_names: false | ||
18 | + include_file_not_found: false | ||
19 | + | ||
20 | + # INCLUDE_FIX (copy of effective dart 1.2.0) | ||
21 | + # STYLE | ||
22 | + camel_case_types: true | ||
23 | + camel_case_extensions: true | ||
24 | + library_names: true | ||
25 | + file_names: true | ||
26 | + library_prefixes: true | ||
27 | + non_constant_identifier_names: true | ||
28 | + directives_ordering: true | ||
29 | + lines_longer_than_80_chars: true # avoid | ||
30 | + curly_braces_in_flow_control_structures: true | ||
31 | + | ||
32 | + # DOCUMENTATION | ||
33 | + slash_for_doc_comments: true | ||
34 | + package_api_docs: true # prefer | ||
35 | + #- comment_references # Unused because https://github.com/dart-lang/sdk/issues/36974 | ||
36 | + | ||
37 | + # USAGE | ||
38 | + implementation_imports: true | ||
39 | + avoid_relative_lib_imports: true # prefer | ||
40 | + prefer_relative_imports: true # prefer | ||
41 | + prefer_adjacent_string_concatenation: true | ||
42 | + prefer_interpolation_to_compose_strings: true # prefer | ||
43 | + unnecessary_brace_in_string_interps: true # avoid | ||
44 | + prefer_collection_literals: true | ||
45 | + avoid_function_literals_in_foreach_calls: true # avoid | ||
46 | + prefer_iterable_whereType: true | ||
47 | + prefer_function_declarations_over_variables: true | ||
48 | + unnecessary_lambdas: true | ||
49 | + prefer_equal_for_default_values: true | ||
50 | + avoid_init_to_null: true | ||
51 | + unnecessary_getters_setters: true | ||
52 | + #- unnecessary_getters # prefer # Disabled pending fix: https://github.com/dart-lang/linter/issues/23 | ||
53 | + #- prefer_expression_function_bodies # consider | ||
54 | + unnecessary_this: true | ||
55 | + prefer_initializing_formals: true | ||
56 | + type_init_formals: true | ||
57 | + empty_constructor_bodies: true | ||
58 | + unnecessary_new: true | ||
59 | + unnecessary_const: true | ||
60 | + avoid_catches_without_on_clauses: true # avoid | ||
61 | + avoid_catching_errors: true | ||
62 | + use_rethrow_when_possible: true | ||
63 | + | ||
64 | + # DESIGN | ||
65 | + use_to_and_as_if_applicable: true # prefer | ||
66 | + one_member_abstracts: true # avoid | ||
67 | + avoid_classes_with_only_static_members: true # avoid | ||
68 | + prefer_mixin: true | ||
69 | + prefer_final_fields: true # prefer | ||
70 | + use_setters_to_change_properties: true | ||
71 | + avoid_setters_without_getters: true | ||
72 | + avoid_returning_null: true # avoid | ||
73 | + avoid_returning_this: true # avoid | ||
74 | + type_annotate_public_apis: true # prefer | ||
75 | + #- prefer_typing_uninitialized_variables # consider | ||
76 | + omit_local_variable_types: true # avoid | ||
77 | + avoid_types_on_closure_parameters: true # avoid | ||
78 | + avoid_return_types_on_setters: true # avoid | ||
79 | + prefer_generic_function_type_aliases: true | ||
80 | + avoid_private_typedef_functions: true # prefer | ||
81 | + #- use_function_type_syntax_for_parameters # consider | ||
82 | + hash_and_equals: true | ||
83 | + avoid_equals_and_hash_code_on_mutable_classes: true # avoid | ||
84 | + avoid_null_checks_in_equality_operators: true | ||
85 | + |
1 | +# Include option is buggy: | ||
2 | +# https://github.com/flutter/flutter/issues/62591 | ||
3 | +# In case the include issue gets fixed, lines below INCLUDE_FIX | ||
4 | +# can be removed | ||
5 | + | ||
6 | +# include: package:effective_dart/analysis_options.1.2.0.yaml | ||
7 | +analyzer: | ||
8 | + strong-mode: | ||
9 | + implicit-casts: false | ||
10 | +linter: | ||
11 | + rules: | ||
12 | + await_only_futures: true | ||
13 | + # This one is desirable, but that's a lot of work for now | ||
14 | + public_member_api_docs: false | ||
15 | + # Desirable, but would be breaking changes: | ||
16 | + avoid_positional_boolean_parameters: false | ||
17 | + constant_identifier_names: false | ||
18 | + include_file_not_found: false | ||
19 | + | ||
20 | + # INCLUDE_FIX (copy of effective dart 1.2.0) | ||
21 | + # STYLE | ||
22 | + camel_case_types: true | ||
23 | + camel_case_extensions: true | ||
24 | + library_names: true | ||
25 | + file_names: true | ||
26 | + library_prefixes: true | ||
27 | + non_constant_identifier_names: true | ||
28 | + directives_ordering: true | ||
29 | + lines_longer_than_80_chars: true # avoid | ||
30 | + curly_braces_in_flow_control_structures: true | ||
31 | + | ||
32 | + # DOCUMENTATION | ||
33 | + slash_for_doc_comments: true | ||
34 | + package_api_docs: true # prefer | ||
35 | + #- comment_references # Unused because https://github.com/dart-lang/sdk/issues/36974 | ||
36 | + | ||
37 | + # USAGE | ||
38 | + implementation_imports: true | ||
39 | + avoid_relative_lib_imports: true # prefer | ||
40 | + prefer_relative_imports: true # prefer | ||
41 | + prefer_adjacent_string_concatenation: true | ||
42 | + prefer_interpolation_to_compose_strings: true # prefer | ||
43 | + unnecessary_brace_in_string_interps: true # avoid | ||
44 | + prefer_collection_literals: true | ||
45 | + avoid_function_literals_in_foreach_calls: true # avoid | ||
46 | + prefer_iterable_whereType: true | ||
47 | + prefer_function_declarations_over_variables: true | ||
48 | + unnecessary_lambdas: true | ||
49 | + prefer_equal_for_default_values: true | ||
50 | + avoid_init_to_null: true | ||
51 | + unnecessary_getters_setters: true | ||
52 | + #- unnecessary_getters # prefer # Disabled pending fix: https://github.com/dart-lang/linter/issues/23 | ||
53 | + #- prefer_expression_function_bodies # consider | ||
54 | + unnecessary_this: true | ||
55 | + prefer_initializing_formals: true | ||
56 | + type_init_formals: true | ||
57 | + empty_constructor_bodies: true | ||
58 | + unnecessary_new: true | ||
59 | + unnecessary_const: true | ||
60 | + avoid_catches_without_on_clauses: true # avoid | ||
61 | + avoid_catching_errors: true | ||
62 | + use_rethrow_when_possible: true | ||
63 | + | ||
64 | + # DESIGN | ||
65 | + use_to_and_as_if_applicable: true # prefer | ||
66 | + one_member_abstracts: true # avoid | ||
67 | + avoid_classes_with_only_static_members: true # avoid | ||
68 | + prefer_mixin: true | ||
69 | + prefer_final_fields: true # prefer | ||
70 | + use_setters_to_change_properties: true | ||
71 | + avoid_setters_without_getters: true | ||
72 | + avoid_returning_null: true # avoid | ||
73 | + avoid_returning_this: true # avoid | ||
74 | + type_annotate_public_apis: true # prefer | ||
75 | + #- prefer_typing_uninitialized_variables # consider | ||
76 | + omit_local_variable_types: true # avoid | ||
77 | + avoid_types_on_closure_parameters: true # avoid | ||
78 | + avoid_return_types_on_setters: true # avoid | ||
79 | + prefer_generic_function_type_aliases: true | ||
80 | + avoid_private_typedef_functions: true # prefer | ||
81 | + #- use_function_type_syntax_for_parameters # consider | ||
82 | + hash_and_equals: true | ||
83 | + avoid_equals_and_hash_code_on_mutable_classes: true # avoid | ||
84 | + avoid_null_checks_in_equality_operators: true | ||
85 | + |
1 | library get_state_manager; | 1 | library get_state_manager; |
2 | 2 | ||
3 | export 'package:get_instance/get_instance.dart'; | 3 | export 'package:get_instance/get_instance.dart'; |
4 | +export 'src/rx_flutter/rx_disposable.dart'; | ||
4 | export 'src/rx_flutter/rx_getx_widget.dart'; | 5 | export 'src/rx_flutter/rx_getx_widget.dart'; |
5 | export 'src/rx_flutter/rx_obx_widget.dart'; | 6 | export 'src/rx_flutter/rx_obx_widget.dart'; |
6 | -export 'src/rx_flutter/rx_disposable.dart'; | ||
7 | export 'src/simple/get_state.dart'; | 7 | export 'src/simple/get_state.dart'; |
8 | export 'src/simple/get_view.dart'; | 8 | export 'src/simple/get_view.dart'; |
9 | export 'src/simple/immutable_state.dart'; | 9 | export 'src/simple/immutable_state.dart'; |
@@ -4,7 +4,7 @@ import 'package:flutter/widgets.dart'; | @@ -4,7 +4,7 @@ import 'package:flutter/widgets.dart'; | ||
4 | import 'package:get_core/get_core.dart'; | 4 | import 'package:get_core/get_core.dart'; |
5 | import 'package:get_instance/get_instance.dart'; | 5 | import 'package:get_instance/get_instance.dart'; |
6 | import 'package:get_rx/get_rx.dart'; | 6 | import 'package:get_rx/get_rx.dart'; |
7 | -import 'package:get_state_manager/get_state_manager.dart'; | 7 | +import '../../get_state_manager.dart'; |
8 | 8 | ||
9 | class GetX<T extends DisposableInterface> extends StatefulWidget { | 9 | class GetX<T extends DisposableInterface> extends StatefulWidget { |
10 | final Widget Function(T) builder; | 10 | final Widget Function(T) builder; |
1 | import 'package:flutter/scheduler.dart'; | 1 | import 'package:flutter/scheduler.dart'; |
2 | -import 'package:get_state_manager/get_state_manager.dart'; | 2 | +import '../../get_state_manager.dart'; |
3 | 3 | ||
4 | /// Used like [SingleTickerProviderMixin] but only with Get Controllers. | 4 | /// Used like [SingleTickerProviderMixin] but only with Get Controllers. |
5 | /// Simplifies AnimationController creation inside GetxController. | 5 | /// Simplifies AnimationController creation inside GetxController. |
@@ -3,7 +3,7 @@ import 'dart:collection'; | @@ -3,7 +3,7 @@ import 'dart:collection'; | ||
3 | import 'package:flutter/material.dart'; | 3 | import 'package:flutter/material.dart'; |
4 | import 'package:get_core/get_core.dart'; | 4 | import 'package:get_core/get_core.dart'; |
5 | import 'package:get_instance/get_instance.dart'; | 5 | import 'package:get_instance/get_instance.dart'; |
6 | -import 'package:get_state_manager/get_state_manager.dart'; | 6 | +import '../../get_state_manager.dart'; |
7 | 7 | ||
8 | import 'simple_builder.dart'; | 8 | import 'simple_builder.dart'; |
9 | 9 |
1 | import 'package:flutter/material.dart'; | 1 | import 'package:flutter/material.dart'; |
2 | -import 'package:get_state_manager/get_state_manager.dart'; | 2 | +import '../../get_state_manager.dart'; |
3 | import 'get_state.dart'; | 3 | import 'get_state.dart'; |
4 | 4 | ||
5 | class MixinBuilder<T extends GetxController> extends StatelessWidget { | 5 | class MixinBuilder<T extends GetxController> extends StatelessWidget { |
packages/get_test/analysis_options.yaml
0 → 100644
1 | +# Include option is buggy: | ||
2 | +# https://github.com/flutter/flutter/issues/62591 | ||
3 | +# In case the include issue gets fixed, lines below INCLUDE_FIX | ||
4 | +# can be removed | ||
5 | + | ||
6 | +# include: package:effective_dart/analysis_options.1.2.0.yaml | ||
7 | +analyzer: | ||
8 | + strong-mode: | ||
9 | + implicit-casts: false | ||
10 | +linter: | ||
11 | + rules: | ||
12 | + await_only_futures: true | ||
13 | + # This one is desirable, but that's a lot of work for now | ||
14 | + public_member_api_docs: false | ||
15 | + # Desirable, but would be breaking changes: | ||
16 | + avoid_positional_boolean_parameters: false | ||
17 | + constant_identifier_names: false | ||
18 | + include_file_not_found: false | ||
19 | + | ||
20 | + # INCLUDE_FIX (copy of effective dart 1.2.0) | ||
21 | + # STYLE | ||
22 | + camel_case_types: true | ||
23 | + camel_case_extensions: true | ||
24 | + library_names: true | ||
25 | + file_names: true | ||
26 | + library_prefixes: true | ||
27 | + non_constant_identifier_names: true | ||
28 | + directives_ordering: true | ||
29 | + lines_longer_than_80_chars: true # avoid | ||
30 | + curly_braces_in_flow_control_structures: true | ||
31 | + | ||
32 | + # DOCUMENTATION | ||
33 | + slash_for_doc_comments: true | ||
34 | + package_api_docs: true # prefer | ||
35 | + #- comment_references # Unused because https://github.com/dart-lang/sdk/issues/36974 | ||
36 | + | ||
37 | + # USAGE | ||
38 | + implementation_imports: true | ||
39 | + avoid_relative_lib_imports: true # prefer | ||
40 | + prefer_relative_imports: true # prefer | ||
41 | + prefer_adjacent_string_concatenation: true | ||
42 | + prefer_interpolation_to_compose_strings: true # prefer | ||
43 | + unnecessary_brace_in_string_interps: true # avoid | ||
44 | + prefer_collection_literals: true | ||
45 | + avoid_function_literals_in_foreach_calls: true # avoid | ||
46 | + prefer_iterable_whereType: true | ||
47 | + prefer_function_declarations_over_variables: true | ||
48 | + unnecessary_lambdas: true | ||
49 | + prefer_equal_for_default_values: true | ||
50 | + avoid_init_to_null: true | ||
51 | + unnecessary_getters_setters: true | ||
52 | + #- unnecessary_getters # prefer # Disabled pending fix: https://github.com/dart-lang/linter/issues/23 | ||
53 | + #- prefer_expression_function_bodies # consider | ||
54 | + unnecessary_this: true | ||
55 | + prefer_initializing_formals: true | ||
56 | + type_init_formals: true | ||
57 | + empty_constructor_bodies: true | ||
58 | + unnecessary_new: true | ||
59 | + unnecessary_const: true | ||
60 | + avoid_catches_without_on_clauses: true # avoid | ||
61 | + avoid_catching_errors: true | ||
62 | + use_rethrow_when_possible: true | ||
63 | + | ||
64 | + # DESIGN | ||
65 | + use_to_and_as_if_applicable: true # prefer | ||
66 | + one_member_abstracts: true # avoid | ||
67 | + avoid_classes_with_only_static_members: true # avoid | ||
68 | + prefer_mixin: true | ||
69 | + prefer_final_fields: true # prefer | ||
70 | + use_setters_to_change_properties: true | ||
71 | + avoid_setters_without_getters: true | ||
72 | + avoid_returning_null: true # avoid | ||
73 | + avoid_returning_this: true # avoid | ||
74 | + type_annotate_public_apis: true # prefer | ||
75 | + #- prefer_typing_uninitialized_variables # consider | ||
76 | + omit_local_variable_types: true # avoid | ||
77 | + avoid_types_on_closure_parameters: true # avoid | ||
78 | + avoid_return_types_on_setters: true # avoid | ||
79 | + prefer_generic_function_type_aliases: true | ||
80 | + avoid_private_typedef_functions: true # prefer | ||
81 | + #- use_function_type_syntax_for_parameters # consider | ||
82 | + hash_and_equals: true | ||
83 | + avoid_equals_and_hash_code_on_mutable_classes: true # avoid | ||
84 | + avoid_null_checks_in_equality_operators: true | ||
85 | + |
1 | name: get_test | 1 | name: get_test |
2 | description: A package that facilitates the creation of tests for applications built with GetX | 2 | description: A package that facilitates the creation of tests for applications built with GetX |
3 | -version: 0.0.3 | 3 | +version: 3.10.2 |
4 | homepage: https://github.com/jonataslaw/getx | 4 | homepage: https://github.com/jonataslaw/getx |
5 | 5 | ||
6 | environment: | 6 | environment: |
packages/get_utils/analysis_options.yaml
0 → 100644
1 | +# Include option is buggy: | ||
2 | +# https://github.com/flutter/flutter/issues/62591 | ||
3 | +# In case the include issue gets fixed, lines below INCLUDE_FIX | ||
4 | +# can be removed | ||
5 | + | ||
6 | +# include: package:effective_dart/analysis_options.1.2.0.yaml | ||
7 | +analyzer: | ||
8 | + strong-mode: | ||
9 | + implicit-casts: false | ||
10 | +linter: | ||
11 | + rules: | ||
12 | + await_only_futures: true | ||
13 | + # This one is desirable, but that's a lot of work for now | ||
14 | + public_member_api_docs: false | ||
15 | + # Desirable, but would be breaking changes: | ||
16 | + avoid_positional_boolean_parameters: false | ||
17 | + constant_identifier_names: false | ||
18 | + include_file_not_found: false | ||
19 | + | ||
20 | + # INCLUDE_FIX (copy of effective dart 1.2.0) | ||
21 | + # STYLE | ||
22 | + camel_case_types: true | ||
23 | + camel_case_extensions: true | ||
24 | + library_names: true | ||
25 | + file_names: true | ||
26 | + library_prefixes: true | ||
27 | + non_constant_identifier_names: true | ||
28 | + directives_ordering: true | ||
29 | + lines_longer_than_80_chars: true # avoid | ||
30 | + curly_braces_in_flow_control_structures: true | ||
31 | + | ||
32 | + # DOCUMENTATION | ||
33 | + slash_for_doc_comments: true | ||
34 | + package_api_docs: true # prefer | ||
35 | + #- comment_references # Unused because https://github.com/dart-lang/sdk/issues/36974 | ||
36 | + | ||
37 | + # USAGE | ||
38 | + implementation_imports: true | ||
39 | + avoid_relative_lib_imports: true # prefer | ||
40 | + prefer_relative_imports: true # prefer | ||
41 | + prefer_adjacent_string_concatenation: true | ||
42 | + prefer_interpolation_to_compose_strings: true # prefer | ||
43 | + unnecessary_brace_in_string_interps: true # avoid | ||
44 | + prefer_collection_literals: true | ||
45 | + avoid_function_literals_in_foreach_calls: true # avoid | ||
46 | + prefer_iterable_whereType: true | ||
47 | + prefer_function_declarations_over_variables: true | ||
48 | + unnecessary_lambdas: true | ||
49 | + prefer_equal_for_default_values: true | ||
50 | + avoid_init_to_null: true | ||
51 | + unnecessary_getters_setters: true | ||
52 | + #- unnecessary_getters # prefer # Disabled pending fix: https://github.com/dart-lang/linter/issues/23 | ||
53 | + #- prefer_expression_function_bodies # consider | ||
54 | + unnecessary_this: true | ||
55 | + prefer_initializing_formals: true | ||
56 | + type_init_formals: true | ||
57 | + empty_constructor_bodies: true | ||
58 | + unnecessary_new: true | ||
59 | + unnecessary_const: true | ||
60 | + avoid_catches_without_on_clauses: true # avoid | ||
61 | + avoid_catching_errors: true | ||
62 | + use_rethrow_when_possible: true | ||
63 | + | ||
64 | + # DESIGN | ||
65 | + use_to_and_as_if_applicable: true # prefer | ||
66 | + one_member_abstracts: true # avoid | ||
67 | + avoid_classes_with_only_static_members: true # avoid | ||
68 | + prefer_mixin: true | ||
69 | + prefer_final_fields: true # prefer | ||
70 | + use_setters_to_change_properties: true | ||
71 | + avoid_setters_without_getters: true | ||
72 | + avoid_returning_null: true # avoid | ||
73 | + avoid_returning_this: true # avoid | ||
74 | + type_annotate_public_apis: true # prefer | ||
75 | + #- prefer_typing_uninitialized_variables # consider | ||
76 | + omit_local_variable_types: true # avoid | ||
77 | + avoid_types_on_closure_parameters: true # avoid | ||
78 | + avoid_return_types_on_setters: true # avoid | ||
79 | + prefer_generic_function_type_aliases: true | ||
80 | + avoid_private_typedef_functions: true # prefer | ||
81 | + #- use_function_type_syntax_for_parameters # consider | ||
82 | + hash_and_equals: true | ||
83 | + avoid_equals_and_hash_code_on_mutable_classes: true # avoid | ||
84 | + avoid_null_checks_in_equality_operators: true | ||
85 | + |
-
Please register or login to post a comment