Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3.7.0 for Flutter 3.27 #91

Merged
merged 24 commits into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
80c097a
Add changelog stub entry for v3-7-0
rydmike Dec 11, 2024
06f7d19
Update version info
rydmike Dec 11, 2024
22c6f53
Bump versions
rydmike Dec 11, 2024
36f6dbc
Updating linting with new available rules
rydmike Dec 11, 2024
a8eecab
Pubspec lock bump
rydmike Dec 13, 2024
7416194
Lint: Doc comment add lang info
rydmike Dec 13, 2024
a663160
Lint: unnecessary_library_name
rydmike Dec 13, 2024
295610e
Migrate: Color deprecation withOpacity to withValues
rydmike Dec 13, 2024
9747080
Migrate: Color deprecation opacity to a
rydmike Dec 13, 2024
73fbe2f
ADD: Color extensions for deprecated 32bit and 8bit colors
rydmike Dec 13, 2024
c0789c0
FIX: Deprecated Color.value usage
rydmike Dec 13, 2024
7cee999
FIX: Deprecated Color.red .green .blue usage
rydmike Dec 13, 2024
4036c46
ADD: Color extension for deprecated Color.alpha
rydmike Dec 13, 2024
d5effc8
FIX: Deprecated Color.alpha usage
rydmike Dec 13, 2024
46b0f73
UPDATE: Tests with new string outputs due to Color class changes.
rydmike Dec 13, 2024
f69350f
FIX: Comment spelling
rydmike Dec 13, 2024
3914f61
FIX: Force Opacity slider to think it is not rounded
rydmike Dec 13, 2024
f668c98
Update: Version info
rydmike Dec 13, 2024
fc7a3f9
Update CHANGELOG.md
rydmike Dec 13, 2024
9b565a0
Remove: isRounded override, does not and will not help
rydmike Dec 13, 2024
ea86870
Web demo app: Fix minor layout issues
rydmike Dec 13, 2024
c37a93e
Update CHANGELOG.md
rydmike Dec 13, 2024
e5f072a
Update CHANGELOG.md
rydmike Dec 28, 2024
f2c86a1
Chore: Update to RydMike lints 2.3.0 and fix lints
rydmike Dec 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

All notable changes to the **FlexColorPicker** package are documented in this file.

## 3.7.0

**Dec 29, 2024**

**PACKAGE**

* Updated the package to support and require at least Flutter v3.27.0.
* Fixed all new analyzer lint warnings and removed usage of all deprecated `Color` properties.
* While the package now uses the updated `Color` class with support for wide color gamut, the color inputs and outputs are still 32-bit RGB color values. A future feature update may add support for more and new color formats.

**KNOWN ISSUES**

* There style breaking issue on the padding around the custom opacity `Slider`. The thumb also jumps towards the center when pressed. These issues did not exist in Flutter 3.24.x and earlier versions. It seems like the issue cannot be completely solved in custom Slider implementation. The extra padding and thumb jumping towards the center seem related to `Slider` changes introduced in Flutter 3.27.0. Those changes were made in preparation for releasing support for the updated Material-3 slider styles. For more information, see issue https://github.com/rydmike/flex_color_picker/issues/90. A fix in Flutter SDK may be needed to solve this issue.

## 3.6.0

**September 25, 2024**
Expand Down
37 changes: 31 additions & 6 deletions all_lint_rules.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
# A list of all linter rules. Up to date auto generated list of all
# lint rules can be found here:
# https://dart-lang.github.io/linter/lints/options/options.html
# A list of all linter rules.
# Expected by rydmike analysis_options: V2.3.0
#
# Up-to-date auto generated list: https://dart.dev/tools/linter-rules/all
#
# The list below has removed ALL deprecated lint rules. These following were still included
# in the above list of all lint rules, but are deprecated and should NOT be used:
#
# - avoid_returning_null_for_future (Deprecated)
# - iterable_contains_unrelated_type (Deprecated)
# - list_remove_unrelated_type (Deprecated)
# - always_require_non_null_named_parameters (Deprecated)
# - avoid_returning_null (Deprecated)
#
# Version 2.3.0 removed the following deprecated rules:
# - avoid_unstable_final_fields
# - unnecessary_getters_settersinvariant_booleans
# - unsafe_html
#
linter:
rules:
- always_declare_return_types
Expand All @@ -9,6 +25,7 @@ linter:
- always_specify_types
- always_use_package_imports
- annotate_overrides
- annotate_redeclares
- avoid_annotating_with_dynamic
- avoid_bool_literals_in_conditional_expressions
- avoid_catches_without_on_clauses
Expand All @@ -22,6 +39,7 @@ linter:
- avoid_field_initializers_in_const_classes
- avoid_final_parameters
- avoid_function_literals_in_foreach_calls
- avoid_futureor_void
- avoid_implementing_value_types
- avoid_init_to_null
- avoid_js_rounded_ints
Expand Down Expand Up @@ -69,6 +87,7 @@ linter:
- directives_ordering
- discarded_futures
- do_not_use_environment
- document_ignores
- empty_catches
- empty_constructor_bodies
- empty_statements
Expand All @@ -81,17 +100,17 @@ linter:
- implicit_call_tearoffs
- implicit_reopen
- invalid_case_patterns
- iterable_contains_unrelated_type
- invalid_runtime_check_with_js_interop_types
- join_return_with_assignment
- leading_newlines_in_multiline_strings
- library_annotations
- library_names
- library_prefixes
- library_private_types_in_public_api
- lines_longer_than_80_chars
- list_remove_unrelated_type
- literal_only_boolean_expressions
- matching_super_parameters
- missing_code_block_language_in_doc_comment
- missing_whitespace_between_adjacent_strings
- no_adjacent_strings_in_list
- no_default_cases
Expand All @@ -101,11 +120,14 @@ linter:
- no_literal_bool_comparisons
- no_logic_in_create_state
- no_runtimeType_toString
- no_self_assignments
- no_wildcard_variable_uses
- non_constant_identifier_names
- noop_primitive_operations
- null_check_on_nullable_type_parameter
- null_closures
- omit_local_variable_types
- omit_obvious_local_variable_types
- one_member_abstracts
- only_throw_errors
- overridden_fields
Expand Down Expand Up @@ -164,13 +186,15 @@ linter:
- sort_constructors_first
- sort_pub_dependencies
- sort_unnamed_constructors_first
- specify_nonobvious_local_variable_types
- test_types_in_equals
- throw_in_finally
- tighten_type_of_initializing_formals
- type_annotate_public_apis
- type_init_formals
- type_literal_in_constant_pattern
- unawaited_futures
- unintended_html_in_doc_comment
- unnecessary_await_in_return
- unnecessary_brace_in_string_interps
- unnecessary_breaks
Expand All @@ -181,6 +205,7 @@ linter:
- unnecessary_lambdas
- unnecessary_late
- unnecessary_library_directive
- unnecessary_library_name
- unnecessary_new
- unnecessary_null_aware_assignments
- unnecessary_null_aware_operator_on_extension_on_nullable
Expand All @@ -197,7 +222,6 @@ linter:
- unnecessary_to_list_in_spreads
- unreachable_from_main
- unrelated_type_equality_checks
- unsafe_html
- use_build_context_synchronously
- use_colored_box
- use_decorated_box
Expand All @@ -217,5 +241,6 @@ linter:
- use_super_parameters
- use_test_throws_matchers
- use_to_and_as_if_applicable
- use_truncating_division
- valid_regexps
- void_checks
Loading
Loading