Version 3.1.0
3.1.0
July 12, 2024
CHANGE
-
Removes the in Flutter 3.22.0 deprecated
ColorScheme
colorsbackground
,onBackground
andsurfaceVariant
from being defined as a part of theSeedColorScheme.fromSeeds
result. They still get color values, but they are whatever the default values the default Flutter SDKColorScheme()
constructor gives them. These colors were deprecated in Flutter 3.22.0 and are now removed from being defined and accessed by FSS.- The removal is done to keep FSS in sync with Flutter SDK and to avoid using deprecated colors.
- These colors should in application usage be replaced by
surface
,onSurface
andsurfaceContainerLowest
in Flutter 3.22.0 and later.- If you for some reason in Flutter 3.22.0 and later still need the deprecated colors, use FSS version 3.0.0.
-
To make
FlexTones.vividSurfaces
andFlexTones.vividBackground
have some distinguishing differences whenbackground
color no longer has any effect or usage, the following changes were made to their tone mappings: -
FlexTones.vividSurfaces
: -
Light: surfaceTone 95 -> 96,
-
Dark: surfaceTone 20 -> 10.
-
FlexTones.vividBackground
: -
Light: surfaceTone 98 -> 97,
-
Dark: surfaceTone 6 -> 5.
CHORE
- Update
all_lint_rules.yaml
.
EXAMPLE
- Remove showing the deprecated colors
background
,onBackground
andsurfaceVariant
in the example app.