Releases: rydmike/flex_color_scheme
Version 7.1.2
7.1.2
May 17, 2023
PACKAGE
FIX
- SubThemes ElevatedButton in M3 mode, when using
elevatedButtonSecondarySchemeColor
and there was no value defined onelevatedButtonSchemeColor
it resulted in wrong color being used as default forelevatedButtonSchemeColor
. Issue and test fixed.
CHORE
- Updated Android runner included for all the examples. The previous one no longer worked with Flutter 3.10, and its used Kotlin version. With included updated version, the examples can be built as Android apps again.
Version 7.1.1
7.1.1
May 15, 2023
PACKAGE
FIX
- Fixed regression issue where custom a
textTheme
's color is no longer applied.- See issue #151.
- The issue was introduced in version 7.0.0, when adding a feature that provided automatic correct default contrast text color for GoogleFonts, when a default
GoogleFonts
and itsTextTheme
, likeGoogleFonts.notoSansTextTheme()
is used intextTheme
orprimaryTextTheme
inFlexColorScheme
. - The
GoogleFonts
and itstextTheme
color always defaults to the color from M2 mode default light modeThemeData.light().textTheme
. This when used inThemeData
forces users to assign correct M2/M3 color andtextTheme
/primaryTextTheme
contrast color, to all its styles, whenever used in a situation where the default is light theme mode M2 color is the wrong color. The default contrast color is basically only correct for a light theme when using Material 2. For anything else, it is incorrect. - FCS version 7.0.0 got rid of the need to make such correction assignment, but it also incorrectly disabled using custom colors used in any custom
TextTheme
. - The applied FIX keeps the desired "no need to give correct contrast color" to a default GoogleFonts
TextTheme
in FlexColorScheme and also allows making custom colored text custom text themes. - The FIX is a bit involved, it also led to an idea that maybe
GoogleFonts
, should just keep the font color default as null, and let Flutter's default Theme behavior handle the assignment of correct color for the M2/M3 mode and light/dark theme mode, using each mode's default contrast color, for each style in theTextTheme
. See issue GoogleFonts #401 for more info on this. - Tests added for the regression and for the new
GoogleFonts
defaultTextTheme
being used and nulling its colors, so they get correct M2/M3 mode default contrast colors in both light and dark mode and for bothtextTheme
andprimaryTextTheme
.
THEMES PLAYGROUND
FIX
- Fixed the code gen for
useTextTheme
setting to always generate code for setting's value in Playground code gen when it is not null. When it is undefined or null, it means that theTextTheme
follows the M2/M3 specification mode defaultTextTheme
andTypography
. In previous versions, the code setting foruseTextTheme
only showed up in the generated code when it was needed to produce the viewed end result. If the M2/m3 mode default produced the same result, the setting was not added to the generated API config. This may be confusing. It is clearer to always show it in code gen when it is set to a none null value. See discussion in repo Q&A #150.
Version 7.1.0
7.1.0
May 12, 2023
FlexColorScheme v7.1.0 supports new theming features in Flutter 3.10, it thus requires minimum Flutter 3.10 and Dart 3.0.
NEW
- Added support for "bring shadows back" adaptive theming feature to
BottomAppBar
andBottomSheet
. - Added
datePickerTheme
toFlexSubThemes
. - Added properties
datePickerDialogRadius
anddatePickerHeaderBackgroundSchemeColor
toFlexSubThemesData
.
CHANGE
- Updated to use minimum
flex_seed_scheme ^1.3.0
. This version, no longer depends onmaterial_color_utilities
, thus avoiding all version issues and conflicts when Flutter changes what breaking version ofmaterial_color_utilities
it uses on different channels and versions.
THEMES PLAYGROUND
- Themes Playground 7.1 for FlexColorScheme 7.1 can be found here.
-
NEW
- Added selection of themed header color scheme color for the DatePickerDialog on the Dialogs panel.
- Added showing SearchBar with SearchView to the AppBar panel.
- Added showing SearchBar with SearchView to the Widget Showcase.
-
UPDATE
- Reviewed and updated status of all known theming issues in info expands.
- The SKIA canvaskit renderer is again being used to build all the web examples, including the Themes Playground.
- Updated all examples to use new
ListenableBuilder
instead ofAnimatedBuilder
where appropriate.
Version 7.0.5
7.0.5
Apr 29, 2023
- Fix: #143 Glitches in highlighting effect on mouse hover over
FlexThemeModeSwitch
andFlexThemeModeOptionButton
.
Version 7.1.0-dev.1
7.1.0-dev.1
Apr 24, 2023
This beta-1 of FlexColorScheme v7.1.0. It is a dev release using Flutter 3.10 beta channel. It requires Flutter version 3.10.0-1.3.pre or later. This beta version is a first preparation version of FlexColorScheme for the next stable Flutter release after version 3.7.x.
NEW
- Added
datePickerTheme
toFlexSubThemes
. - Added properties
datePickerDialogRadius
anddatePickerHeaderBackgroundSchemeColor
toFlexSubThemesData
.
THEMES PLAYGROUND
-
NEW
- Added selection of themed header color scheme color for the DatePickerDialog on the Dialogs panel.
- Added showing SearchBar with SearchView to the AppBar panel.
- Added showing SearchBar with SearchView to the Widget Showcase.
-
UPDATE
- Reviewed and updated status of all known theming issues in info expands.
-
SKIA
- The SKIA canvaskit renderer is again being used to build all the web examples, including the Themes Playground.
- The beta-1 version of Themes Playground 7.1 for FCS 7.1 can be tested here.
Version 7.0.4
7.0.4
Apr 22, 2023
- Package
- No changes.
- Themes Playground
- FIX: AppBar setting for using platform adaptive scroll under elevation tint removal was not working correctly. UI bug in Playground only, no package impact.
Version 7.0.3
7.0.3
Apr 19, 2023
- Fix #136 default background color regression on
FlexThemeModeSwitch
andFlexThemeModeOptionButton
.
Version 7.0.2
7.0.2
Apr 16, 2023
- Chore: Changed to using
flex_seed_scheme: ^1.2.4
that depends onmaterial_color_utilities
with version constraint set to>=0.2.0 <0.4.0
from^0.2.0
.- This change enables the package to be used on current Flutter stable 3.7 versions, as well as the latest 3.10.x versions on channels beta and master. It will also work with the next stable Flutter release after 3.7.
Version 7.0.1
7.0.1
Apr 6, 2023
- Package
- No changes.
- Themes Playground
- Less chatty UI
- Revised media size breakpoints.
- Vertical color selector mode.
- More compact UI options for smaller laptop displays and tablets.
Version 7.0.0
7.0.0
Apr 2, 2023
This is a major update to the FlexColorScheme package and a substantial leap for the companion app Themes Playground. For a detailed list of all changes, please refer to the incremental log from its development release linked below.
-
Changes from 7.0.0-dev.3 to 7.0.0
- Package: Only tests and documentation additions and updates.
- Playground: Label and layout corrections.
The Themes Playground app built for this release is unfortunately not a SKIA renderer build, it is using the HTML renderer. This makes it less performant than the app would otherwise be. Additionally, scaled content, like the Themes Simulator panel in the Playground, is also fuzzier than it would be with the SKIA renderer. Due to an issue in Flutter stable 3.7.0 to at least 3.7.9, builds made with the SKIA renderer performs very poorly and crash quickly. For more information, see Flutter issue #122189. A new build using the same package version will be made later and released when a fix for the SKIA issues are available on the Flutter stable channel.