Skip to content

Version 8.1.0

Latest
Compare
Choose a tag to compare
@rydmike rydmike released this 29 Dec 20:56

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 property sliderThumbSchemeColor.
    • FlexSubThemes.sliderTheme got the property thumbSchemeColor.
  • BottomSheet: Added theming properties for the BottomSheet clip behavior property.

    • FlexSubThemesData got the property bottomSheetClipBehavior.
    • FlexSubThemes.bottomSheetTheme got the property clipBehavior.
    • The default value is now null causing the sheet to use Clip.none as the default via the component's built-in default value. Keeping it null, or setting it to Clip.none helps avoid this Flutter SDK issue: #270 where using a BackdropFilter does not work correctly is any other clip behavior value than Clip.none is used.
    • CHANGE/FIX
      • Previously FlexColorScheme made BottomSheetThemeData where the clip behavior was set to Clip.antialias by default, causing the issue with BackdropFilter 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.
  • 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 property tabBarIndicatorAnimation.
    • FlexSubThemes.tabBarTheme got the property indicatorAnimation.
  • Exposes the convenience Color sRGB extensions from package flex_seed_scheme, that can be used as none deprecated replacements for alpha, red, green, blue and value they are called alpha8bit, red8bit, green8bit, blue8bit and value32bit. 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 and FlexSubThemes.dialogTheme to use normalized component themes and return CardThemeData and DialogThemeData instead of CardThemeand DialogTheme. This is in-line with changes in Flutter 3.27.0.

FIX

  • BUG: Locked errorContainer used tertiaryContainer, corrected to use errorContainer.

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.