Requires at least Flutter 3.38.0, but prefer 3.38.1 or higher.
Package
NEW
Add boolean sliderYear2023 to FlexSubThemesData to be able to select between older M3 and newer current M3 slider styles. Defaults to older style as before to not break styles. Set sliderYear2023 to value false, to use the current newer M3 style.
Add progressIndicatorTheme to FlexSubThemes to be able to theme CircularProgressIndicator and LinearProgressIndicator components.
To FlexSubThemes static function cardTheme added the parameters:
colorScheme (ColorScheme)
backgroundSchemeColor (SchemeColor)
borderSchemeColor (SchemeColor)
borderWidth (double)
To FlexSubThemesData added the properties:
cardBackgroundSchemeColor (SchemeColor)
cardBorderSchemeColor (SchemeColor)
cardBorderWidth (double)
CHANGE
The enum FlexSliderIndicatorType got a new value rounded, to support selecting the newer M3 indicator style also in M2 and older M3 mode for Slider and RangeSlider.
CHORE
Update lints to RydMike lint rules 2.6.0 and fix new linting issues.
Internal: Bump flex_seed_scheme dependency to ^4.0.0.
Internal: Refactored all component themes in FlexSubThemes to be in their own files, to improve maintainability and reduce the size of flex_sub_themes.dart file. This also make it easier for LLMs to work on the component themes, as they now have smaller files to process.
Improve FlexSubThemes function and variable documentation. Add parameter docs to all component theme functions in the function header docs so they show up in API docs.
Themes Playground
NEW
The Slider panel got a new switch control to select between older M3 and newer current M3 slider styles. It uses the new FlexSubThemesData.sliderYear2023 property to do so.
Split the Tooltip and Progress Indicator panel into two separate panels.
The new Progress Indicator panel got theming controls for all supported new FlexSubThemesData progress indicator properties listed above.
The Card panel got theming controls for FlexSubThemesData card properties cardBackgroundSchemeColor, cardBorderSchemeColor, cardBorderWidth and cardElevation.
CHANGE
Visual improvements to the color picker dialog in the Themes Playground.
FIX
Fixed deprecated Radio properties and used RadioGroup instead.