flex_seed_scheme 1.2.0-dev.1
flex_seed_scheme: ^1.2.0-dev.1 copied to clipboard
A more flexible version of Flutter's ColorScheme.fromSeed, use multiple seed colors, custom chroma and tone mapping.
Changelog #
All notable changes to the FlexSeedScheme (FSS) package are documented here.
1.2.0-dev.1 #
Dec 23, 2022
Requires minimum Flutter 3.7.0-1.2.pre (beta channel). This is a development pre-release to support outlineVariant and scrim colors in ColorScheme. It is used for development and testing against new Material 3 features in Flutter 3.7 beta and master channel. It will be released as a stable version when the new color properties land in the Flutter stable channel, most likely after January 25, 2023.
The release also adds new features to allow customization of seed generation of error, neutral and neutral variant tonal palettes.
NEW
-
Adds support for
outlineVariantandscrimcolors inColorScheme. -
Added support for customizing seed generation for error, neutral and neutral variant tonal palettes.
-
To support the new features the
SeedColorScheme.fromSeedsgot the following newColorpropertieserrorKey,neutralKeyandneutralVariantKey. -
The
FlexTonesclass got the following newdoublepropertieserrorChroma,errorMinChroma,neutralMinChromaandneutralVariantMinChroma -
The
FlexCorePalette.fromSeedsfactory got the following newintpropertieserror,neutral,neutralVariantandneutralVariantMinChroma. As well as newdoublepropertieserrorChroma,errorMinChroma,neutralChroma,neutralMinChroma,neutralVariantChromaandneutralVariantMinChroma. -
The demo application got an About dialog. The demo app also shows the
ColorSchemeapplied on common Material components.
1.1.0 #
Nov 17, 2022
NEW
-
Added new
FlexTonesmethodonMainsUseBW, that can return a new instance of its configurations with tone mapping for its main *on colors set to tone, 0 (black) or 100 (white), depending on what is appropriate for its main color tones. The main colors are primary, secondary, tertiary, error and their containers. The method works on any configuredFlexTones, also custom ones, not only the built-in ones. -
Added new
FlexTonesmethodonSurfacesUseBW, that can return a new instance of its configurations with tone mapping for its surface *on colors set to tone, 0 (black) or 100 (white), depending on what is appropriate for its surface color tones. Surface colors are background, surface, surfaceVariant and inverseSurface. The method works on any configuredFlexTones, also custom ones, not only the built-in ones. -
To be able to support creating mono-hue seeded color schemes, the
FlexCorePalette.fromSeedsgot a new propertytertiaryHueRotation. It controls the used hue rotation degrees from primary key color, that is used when a tertiary seed key color is not provided. ThetertiaryHueRotationdefaults 60 degrees, same as previously from Material 3 color system hard-coded value. -
Added two new
FlexTones.FlexTones.oneHuethat settertiaryHueRotationto 0, so we can create a mono hue palette if we only provide primary key color as seed.FlexTones.vividBackgroundthat is a copy ofFlexTones.vividSurfacesbut with tone mapping forbackgroundandsurfaceswapped.
CHANGE
Tone mappings for some pre-configured FlexTones were slightly modified. They now produce improved and more usable color schemes. Most significantly, the mappings for FlexTones.vividSurfaces were modified to provide a more usable and improved vivid surfaces tinted color scheme, while still offering a slightly more tinted surface design than FlexTones.vivid. Tone mapping changes are as follows:
- The
FlexTones.vivid, brightness light:- Tone
surfaceTonewas changed from 99 to 98.
- Tone
- The
FlexTones.vivid, brightness dark:- Tone
onErrorContainerTonewas changed from 90 to 80 (dark M3 default). - Tone
backgroundTonewas changed from 10 to 5.
- Tone
- The
FlexTones.vividSurfacesbrightness light:- Tone
onPrimaryTonewas changed from 95 to 98. - Tone
onSecondaryTonewas changed from 95 to 98. - Tone
onTertiaryTonewas changed from 95 to 98. - Tone
onErrorTonewas changed from 95 to 98. - Tone
primaryContainerTonewas changed from 80 to 90 (light M3 default). - Tone
secondaryContainerTonewas changed from 80 to 90 (light M3 default). - Tone
tertiaryContainerTonewas changed from 80 to 90 (light M3 default). - Tone
errorContainerTonewas changed from 80 to 90 (light M3 default). - Tone
surfaceVariantTonewas changed from 80 to 90 (light M3 default). - Tone
backgroundTonewas changed from 90 to 98. neutralChromawas changed from 8 to 5.neutralVariantChromawas changed from 16 to 10.
- Tone
- The
FlexTones.vividSurfacesbrightness dark:- Tone
primaryContainerTonewas changed from 40 to 20. - Tone
tertiaryContainerTonewas changed from 40 to 30 (dark M3 default). - Tone
primaryContainerTonewas changed from 40 to 30 (dark M3 default). - Tone
onErrorTonewas changed from 20 to 30 (dark M3 default). - Tone
onErrorContainerTonewas changed from 90 to 80 (dark M3 default). - Tone
surfaceTonewas changed from 10 to 20. - Tone
surfaceVariantTonewas changed from 40 to 30 (dark M3 default). - Tone
backgroundTonewas changed from 20 to 10. - Tone
onSurfaceVariantTonewas changed from 90 to 95. - Tone
onInverseSurfaceTonewas changed from 30 to 20 (dark M3 default). neutralChromawas changed from 8 to 5.neutralVariantChromawas changed from 16 to 10.
- Tone
- The
FlexTones.ultraContrastbrightness light:- Tone
primaryTonewas changed from 30 to 20.
- Tone
- The
FlexTones.ultraContrastbrightness dark:- Tone
surfaceTonewas changed from 10 to 5. - Tone
backgroundTonewas changed from 10 to 5.
- Tone
1.0.1 #
Sep 2, 2022
DOCS
- Readme: Removed old notice about package being a beta release and using Flutter 3.3 beta.
- Readme: Described custom FlexTones config with an example.
- API doc improvements.
EXAMPLE
- Allow selection of example custom tones example and all built-in
FlexTonesoptions. - Publish example app as a live web demo.
1.0.0 #
Aug 30, 2022
First stable release.
- Document updates.
- Updated minimum dependencies to Dart >=2.18.0 and Flutter >= 3.3.0.
0.2.0-dev.2 #
Aug 28, 2022
NEW
- From Material Color utilities export and show
Cam16.
0.2.0-dev.1 #
Aug 27, 2022
NEW
- Add customization possibility of
errortonal palette to the defaultFlexTonalPaletteconstructor.
BREAKING
- The
FlexTonalPalettemethodasListand constructorfromList, now include the values of the error color in producedasList, and as required values infromList.
0.1.0-dev.3 #
Aug 27, 2022
- Fix pub points.
0.1.0-dev.2 #
Aug 27, 2022
- Relax version constraint to make it work on beta 3.3.0-0.3.pre and later.
- Remove in Flutter beta 3.3.0 unsupported
ColorSchemecolorsscrimandoutlineVariant.
0.1.0-dev.1 #
Aug 26, 2022
- First dev release of the package.