8.1.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.
NEW
-
Slider: Added theming properties for the Slider thumb color.
FlexSubThemesData
got the propertysliderThumbSchemeColor
.FlexSubThemes.sliderTheme
got the propertythumbSchemeColor
.
-
BottomSheet: Added theming properties for the BottomSheet clip behavior property.
FlexSubThemesData
got the propertybottomSheetClipBehavior
.FlexSubThemes.bottomSheetTheme
got the propertyclipBehavior
.- The default value is now
null
causing the sheet to useClip.none
as the default via the component's built-in default value. Keeping it null, or setting it toClip.none
helps avoid this Flutter SDK issue: #270 where using aBackdropFilter
does not work correctly is any other clip behavior value thanClip.none
is used. - CHANGE/FIX
- Previously FlexColorScheme made
BottomSheetThemeData
where the clip behavior was set toClip.antialias
by default, causing the issue withBackdropFilter
usage to emerge by default. Now you have to select another clip behavior explicitly to get the same result as before, and ne warned that Flutter SDK has issues when doing so.
- Previously FlexColorScheme made
-
TabBar: Added theming properties for the TabBar indicator animation behavior, that are based on the new enum property
TabIndicatorAnimation
in Flutter 3.27.0.FlexSubThemesData
got the propertytabBarIndicatorAnimation
.FlexSubThemes.tabBarTheme
got the propertyindicatorAnimation
.
-
Exposes the convenience
Color
sRGB extensions from packageflex_seed_scheme
, that can be used as none deprecated replacements foralpha
,red
,green
,blue
andvalue
they are calledalpha8bit
,red8bit
,green8bit
,blue8bit
andvalue32bit
. FlexColorPicker uses them internally to avoid using the deprecated Color properties.
CHANGE
- Slider: Minor color fidelity change to the Slider's thumb overlay color, it now uses Material-3 default for none tinted overlay. The M3 spec default is tinted as well, so the difference to when using FlexColorScheme's tinted interactions via
FlexSubThemesData(interactionEffects: true)
is now negligible for the Slider's default thumb overlay color. - Migrated
FlexSubThemes.cardTheme
andFlexSubThemes.dialogTheme
to use normalized component themes and returnCardThemeData
andDialogThemeData
instead ofCardTheme
andDialogTheme
. This is in-line with changes in Flutter 3.27.0.
FIX
- BUG: Locked
errorContainer
usedtertiaryContainer
, corrected to useerrorContainer
.
Themes Playground
NEW
- Slider: On the Slider panel added a scheme color selector for the Slider thumb color.
- BottomSheet: On the BottomSheet panel added a clipping behavior selector.
- TabBar: On the TabBar panel added a tab indicator animation selector.
CHANGE
- Slider: Increased Playground allowed max Slider track height from 14 to 40.