Skip to content

Commit a073328

Browse files
authored
Merge pull request #9 from rydmike/next-release
Version 1.5.0
2 parents adfbbf9 + eff87d5 commit a073328

21 files changed

+442
-173
lines changed

.github/workflows/deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ on:
2727
paths-ignore:
2828
- "**.md"
2929
release:
30-
branches: [none]
31-
types: [publish]
30+
branches: [master]
31+
types: [published]
3232

3333
jobs:
3434
flutter_tests:

CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22

33
All notable changes to the **FlexSeedScheme** (FSS) package are documented here.
44

5+
## 1.5.0
6+
7+
**April 3, 2024**
8+
9+
* **NEW**
10+
* Exposed `Hct` and `ViewingConditions` from the underlying Material Color Utilities (MCU) library. They are exposed for convenience, you no longer have to add and import (MCU) to use them.
11+
* Add `CODE_OF_CONDUCT.md` and `CONTRIBUTING.md` files for guidance on contributing to the package.
12+
513
## 1.4.0
614

715
**July 2, 2023**
816

9-
* **NEW FEATURES**
17+
* **NEW**
1018
* Added support for new HCT tones used by updated Material3 color system, that were added during the first half of 2023 to the Material 3 color system specification. The added tones 4, 6, 12, 17, 22 are for new dark mode surfaces in revised Material 3 dark surface colors. Likewise, added tones 97, 96, 94, 92, 87 are for light mode surfaces in the updated Material 3 color system. For more information, see: https://m3.material.io/styles/color/the-color-system/color-roles.
1119
* The change and additions are none breaking. APIs that want and can use the extended tones can pass in an optional `paletteType` of `FlexPaletteType` and set it to `FlexPaletteType.extended`, by default its values `FlexPaletteType.common` resulting in the 15 tones `[0, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95, 98, 99, 100]` being produced as before.
1220
* The complete list of the 25 extended tones are `[0, 4, 5, 6, 10, 12, 17, 20, 22, 30, 40, 50, 60, 70, 80, 87, 90, 92, 94, 95, 96, 97, 98, 99, 100]`.

CODE_OF_CONDUCT.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Code of Conduct for Contributors
2+
3+
We are committed to creating a friendly and respectful community for everyone who wants to contribute to this open source library. By participating in this project, you agree to abide by the following code of conduct.
4+
5+
## Be respectful and constructive
6+
7+
We value your feedback and suggestions, but please be respectful and constructive when you communicate with other contributors, maintainers, and users. Avoid personal attacks, insults, trolling, harassment, or any other behavior that could make others feel unwelcome or uncomfortable. If you disagree with someone, try to understand their perspective and explain your reasoning in a polite and clear manner.
8+
9+
## Follow the project guidelines
10+
11+
We have some guidelines for how to contribute to this project, such as coding style enforced via lint rules, documentation, testing, and pull requests. Please follow these guidelines when you make your contributions. They are designed to ensure the quality and consistency of the codebase, as well as to facilitate the review process. If you are unsure about something, feel free to ask the maintainers or other contributors for help.
12+
13+
## Acknowledge the work of others
14+
15+
We appreciate your contributions, but we also expect you to acknowledge the work of others who have contributed to this project before you. Do not claim credit for something that is not your own, or plagiarize from other sources. If you use or modify code from other sources, make sure to give proper attribution and follow the license terms.
16+
17+
## Be honest and transparent
18+
19+
We expect you to be honest and transparent about your contributions. Do not submit code that you know is faulty, incomplete, or untested. Do not misrepresent the purpose or scope of your contribution. Do not hide any potential conflicts of interest or ulterior motives. If you encounter any problems or issues with your contribution, please report them promptly and openly.
20+
21+
## Be open and inclusive
22+
23+
We welcome contributions from anyone who shares our vision and values for this project. We do not discriminate based on age, gender, race, ethnicity, religion, sexual orientation, disability, or any other personal characteristics. We strive to create an inclusive and diverse community that fosters collaboration and innovation.
24+
25+
Thank you for your contribution! 🙏

CONTRIBUTING.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Contributing to FlexSeedScheme
2+
3+
Thank you for your interest in contributing to **FlexSeedScheme**, a more flexible and powerful version of Flutter's ColorScheme.fromSeed. Use multiple seed colors, custom chroma and tone mapping. We welcome contributions that fix bugs, introduce enhancements or new features, and correct API documentation errors or typos.
4+
5+
## How to contribute
6+
7+
Before you start working on your contribution, please follow these steps:
8+
9+
- Fork the repository on GitHub and clone your fork to your local machine.
10+
- Create a new branch from the main branch and name it according to the type and scope of your contribution. For example, `fix/issue-123` or `feature/new-color-option`.
11+
- Make your changes in the new branch, following the code style and conventions of the project.
12+
- Write tests for your changes, using the existing test framework. Make sure your changes do not break any existing tests or decrease the test coverage of the project.
13+
- Commit your changes with a clear and descriptive message, referencing any relevant issues or pull requests.
14+
- Push your changes to your fork on GitHub and create a pull request against the main branch of the original repository.
15+
- Wait for the maintainers to review your pull request and provide feedback or approval.
16+
17+
## What to contribute
18+
19+
We appreciate any contribution that improves the quality and functionality of the package. Here are some examples of what you can contribute:
20+
21+
- Bug fixes: If you find a bug in the package, please report it as an issue on GitHub and provide a fix if possible.
22+
- Enhancements: If you have an idea for a new feature or an improvement to an existing feature, please create an issue on GitHub to discuss it with the maintainers before working on it.
23+
- Documentation: If you notice any errors or typos in the API documentation or the README file, please correct them and submit a pull request.
24+
25+
## What not to contribute
26+
27+
We value your time and effort, but we also have some guidelines for what kind of contributions we do not accept. Please do not submit contributions that:
28+
29+
- Introduce breaking API changes **without** prior discussion and approval from the maintainers.
30+
- Add little or no value to the package, such as stylistic or irrelevant updates in the samples that demonstrate usage of the package. Such contributions are unlikely to be merged, as they may cause unnecessary conflicts or maintenance issues.
31+
- Violate the code of conduct or the license of the project.
32+
33+
## Code of conduct
34+
35+
We expect all contributors to follow our code of conduct, which promotes a respectful and inclusive contribution community.
36+
37+
## License
38+
39+
By contributing to flex_seed_scheme, you agree that your contributions will be licensed under its [BSD 3-Clause License](https://github.com/rydmike/flex_seed_scheme/blob/master/LICENSE).
40+
41+
Thank you for your contribution! 🙏

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
FlexSeedScheme Copyright (c) 2022
3+
FlexSeedScheme Copyright (c) 2022-2024
44
Mike Rydstrom (Twitter @RydMike GitHub rydmike)
55
All rights reserved.
66

all_lint_rules.yaml

+18-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
# A list of all linter rules. Up to date auto generated list of all
2-
# lint rules can be found here:
3-
# https://dart-lang.github.io/linter/lints/options/options.html
1+
# A list of all linter rules.
2+
#
3+
# Up-to-date auto generated list: https://dart.dev/tools/linter-rules/all
4+
#
5+
# The list below has removed ALL deprecated lint rules. These following were still included
6+
# in the above list of all lint rules, but are deprecated and should NOT be used:
7+
#
8+
# - avoid_returning_null_for_future (Deprecated)
9+
# - iterable_contains_unrelated_type (Deprecated)
10+
# - list_remove_unrelated_type (Deprecated)
11+
# - always_require_non_null_named_parameters (Deprecated)
12+
# - avoid_returning_null (Deprecated)
13+
#
414
linter:
515
rules:
616
- always_declare_return_types
@@ -9,6 +19,7 @@ linter:
919
- always_specify_types
1020
- always_use_package_imports
1121
- annotate_overrides
22+
- annotate_redeclares
1223
- avoid_annotating_with_dynamic
1324
- avoid_bool_literals_in_conditional_expressions
1425
- avoid_catches_without_on_clauses
@@ -44,6 +55,7 @@ linter:
4455
- avoid_types_as_parameter_names
4556
- avoid_types_on_closure_parameters
4657
- avoid_unnecessary_containers
58+
- avoid_unstable_final_fields
4759
- avoid_unused_constructor_parameters
4860
- avoid_void_async
4961
- avoid_web_libraries_in_flutter
@@ -81,15 +93,13 @@ linter:
8193
- implicit_call_tearoffs
8294
- implicit_reopen
8395
- invalid_case_patterns
84-
- iterable_contains_unrelated_type
8596
- join_return_with_assignment
8697
- leading_newlines_in_multiline_strings
8798
- library_annotations
8899
- library_names
89100
- library_prefixes
90101
- library_private_types_in_public_api
91102
- lines_longer_than_80_chars
92-
- list_remove_unrelated_type
93103
- literal_only_boolean_expressions
94104
- matching_super_parameters
95105
- missing_whitespace_between_adjacent_strings
@@ -101,6 +111,8 @@ linter:
101111
- no_literal_bool_comparisons
102112
- no_logic_in_create_state
103113
- no_runtimeType_toString
114+
- no_self_assignments
115+
- no_wildcard_variable_uses
104116
- non_constant_identifier_names
105117
- noop_primitive_operations
106118
- null_check_on_nullable_type_parameter
@@ -177,7 +189,7 @@ linter:
177189
- unnecessary_const
178190
- unnecessary_constructor_name
179191
- unnecessary_final
180-
- unnecessary_getters_setters
192+
- unnecessary_getters_settersinvariant_booleans
181193
- unnecessary_lambdas
182194
- unnecessary_late
183195
- unnecessary_library_directive

0 commit comments

Comments
 (0)