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

Version 2 0 0-dev.1 #11

Merged
merged 35 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
d7c65c6
PREP: Version 2.0.0-dev.1
rydmike Apr 3, 2024
e8143dd
Bring internal MCU to parity with version 11.1
rydmike Apr 24, 2024
a762caa
Updates MCU tests to version 0.11.1
rydmike Apr 24, 2024
a83b5a3
Update FlexTones and FlexTonalPalette for new M3 ColorScheme needs
rydmike Apr 24, 2024
7d07bb6
New ColorScheme palette tones for Flutter 3.22
rydmike Apr 26, 2024
8d85262
Support new colors in Flutter 3.22 ColorScheme
rydmike Apr 26, 2024
2a108ed
Update tests with new FlexTones and chnage from 99 to 98 and chroma 6…
rydmike Apr 26, 2024
cf0d78a
Update tests for new Flutter 3.22 ColorScheme tonal palettes
rydmike Apr 26, 2024
e5f825d
Test fixes for new ColorScheme in Flutter 3.22
rydmike Apr 26, 2024
d30f1bc
Compatibility changes for Flutter 3.22
rydmike May 9, 2024
1ec0dba
Add SDK DynamicScheme algos and selections to FSS.
rydmike May 10, 2024
1abb9d8
Example: New ColorScheme presentation
rydmike May 10, 2024
e50171c
Make BW worked on onFixe and onFixedVariant colors
rydmike May 11, 2024
e8e6e45
Add tone 2 to FlexTones extended
rydmike May 11, 2024
0e4ad84
Remove disable scheme variant
rydmike May 11, 2024
a927c7f
Update broken tests due to breaking changes
rydmike May 11, 2024
4591478
Update example
rydmike May 11, 2024
4fb1a71
Update CHANGELOG.md
rydmike May 11, 2024
434db41
Update CHANGELOG.md
rydmike May 11, 2024
35d5c7c
Describe the scheme variants properly and add icons
rydmike May 11, 2024
49a65fd
Tune: highContrast, UltraContrast, Chroma schemes (make them better)
rydmike May 11, 2024
fbde5fa
Update tests
rydmike May 11, 2024
73c2f12
Fix example app
rydmike May 11, 2024
f202dfb
Expose DynamicScheme
rydmike May 13, 2024
b350e10
Update detailed config info
rydmike May 13, 2024
8721d60
Update sample to show tones for all variants
rydmike May 13, 2024
e51ab66
Add tests
rydmike May 13, 2024
ea284d6
Update test: Coverage to 100%
rydmike May 13, 2024
4e04df0
Change: Variant style description
rydmike May 13, 2024
5b3b6d7
Update example
rydmike May 13, 2024
c9a324c
Update deploy.yml
rydmike May 13, 2024
46397af
Update CHANGELOG.md
rydmike May 13, 2024
d21be37
Update README.md
rydmike May 13, 2024
df38234
Update deploy.yml
rydmike May 13, 2024
0dc7f15
Update test.yml
rydmike May 13, 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
3 changes: 3 additions & 0 deletions .fvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"flutter": "beta"
}
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Install Flutter and Dart SDK
uses: subosito/flutter-action@v2
with:
channel: 'stable'
channel: 'beta'
- name: "Show Dart SDK version"
run: dart --version
- name: "Show Flutter SDK version"
Expand All @@ -66,14 +66,14 @@ jobs:
- name: "EXAMPLE START BUILD - Flutter clean before build"
run: flutter clean && cd example && flutter clean
- name: "EXAMPLE WEB release build"
run: cd example && flutter build web --web-renderer canvaskit --base-href "/flexseedscheme/demo-v1/" --release -t lib/main.dart
run: cd example && flutter build web --web-renderer canvaskit --base-href "/flexseedscheme/demo-v2/" --release -t lib/main.dart
- name: "EXAMPLE DEPLOY to GitHub Pages repository, published on commit."
uses: dmnemec/[email protected]
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: 'example/build/web/.'
destination_folder: 'flexseedscheme/demo-v1'
destination_folder: 'flexseedscheme/demo-v2'
destination_repo: 'rydmike/rydmike.github.io'
user_email: '[email protected]'
user_name: 'rydmike'
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: "Install Flutter and Dart SDK"
uses: subosito/flutter-action@v2
with:
channel: "stable"
channel: "beta"
- name: "Show Dart SDK version"
run: dart --version
- name: "Show Flutter SDK version"
Expand Down
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,36 @@

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

## 2.0.0-dev.1

**May 13, 2024**

This release adds support for the revised Material-3 `ColorScheme` released in Flutter version 3.22.

* **CHANGE**
* Bring the internal Material Color Utilities (MCU) library version to parity with its latest package release 0.11.1. Flutter SDK stable 3.22 still uses MCU 0.8.0, but the Flutter master channel is using MCU 0.11.1.
* The `FlexPaletteType.extended` tones got two new tones added, tone 2, and 24. It now has 27 tones.


* **NEW**
* Support revised Material-3 `ColorScheme` with the new colors primaryFixed, primaryFixedDim, onPrimaryFixed, onPrimaryFixedVariant, secondaryFixed, secondaryFixedDim, onSecondaryFixed, onSecondaryFixedVariant, tertiaryFixed, tertiaryFixedDim, onTertiaryFixed, onTertiaryFixedVariant, surfaceDim, surfaceBright, surfaceContainerLowest, surfaceContainerLow, surfaceContainer, surfaceContainerHigh and surfaceContainerHighest.

* New optional way to specify used seeding algorithm in `SeedColorScheme.fromSeeds` by providing new enum value `FlexSchemeVariant` to its `variant` property.

* In addition to supporting selection of previously built-in `FlexTones`, the `variant` property also supports using Flutter SDK scheme variants `tonalSpot`, `monochrome`, `neutral`, `vibrant`, `expressive`, `content`,`rainbow` and `fruitSalad` in property `variant` in `SeedColorScheme.fromSeeds`. In Flutter 3.22 only the default `tonalSpot` is available, but with FSS you can use any of the other variants as well already in Flutter 3.22. The other variants are not yet available in Flutter 3.22, but they are available in the `ColorScheme` API in the master channel and will be available in Flutter `ColorScheme.fromSeed` as well, in the next stable release after 3.22. With FSS you can use them already starting from Flutter 3.22.0.


* **BREAKING**
* The Material-3 `ColorScheme` colors `background`, `onBackground` and `surfaceVariant` have been deprecated since they are also deprecated in Flutter 3.22.
* These **deprecated** colors are still supported in `SeedColorScheme.fromSeeds` and `FlexTones`, but will be removed in a future release. They are replaced by `surface` and newer colors like `surfaceDim`, `surfaceBright` and `surfaceContainerLowest` in the new Material-3 `ColorScheme` in Flutter 3.22.
* The fact that these deprecated colors are still referenced in the package will reduce its **pub.dev** score with 10 points, but it is kept for now to maintain compatibility with Flutter 3.22 that also still provides values for the deprecated colors. This package needs to provide the same values to be fully compatible. The `ColorScheme` colors `background`, `onBackground` and `surfaceVariant` may only be fully removed when they have been removed from the Flutter SDK stable channel. They may, if they can be removed without breaking any styles, be removed in a future release of this package, even if they are still available in the Flutter SDK stable channel.


* **BREAKING STYLES**

* All built-in `FlexTones` now use the `paletteType` extended via `FlexPaletteType.extended` as default for additional tone fidelity. This is needed for compatibility with Flutter 3.22 and its revised `ColorScheme`.
* The default tones for the built-in `FlexTones` have been adjusted to match the new Material-3 `ColorScheme` in Flutter 3.22. The new tones and default styles are marginally different but also better than in previous Flutter versions. If you need the result and style used in Flutter 3.19 and earlier, you can use the `FlexTones.material3Legacy` as `tones` in `SeedColorScheme.fromSeeds` to get the result `FlexTones.material` produced in FSS before version 2.0.0 and that was default in Flutter in version 3.19 and earlier.

## 1.5.0

**April 3, 2024**
Expand Down
Loading
Loading