rydmike / flex_color_scheme

A Flutter package to make and use beautiful color scheme based themes.
Other
999 stars 110 forks source link

Theme for Vision Pro #226

Open bremington opened 7 months ago

bremington commented 7 months ago

I have adjusted my app to use your package and to have a selectable set of Themes. However in supporting Vision Pro I need the ability to change background and surfaces to a blurred filter with limited opacity, and to bump all text to medium and bold weights in White. I don't have the freedom to hand code every background with a .copyWith..... So I was hoping you could add these simple additions to the package and perhaps have a dedicated theme for Vision Pro. Thank you!

rydmike commented 1 month ago

Current ThemeData in Flutter cannot contain blur filters in any of its config properties. And since FlexColorScheme is a super fancy ThemeData factory, it cannot be done since Flutter ThemeData does not support it.

If Flutter ever adds support for blurs, and also for making the app itself blur translucent, to Material ThemeData, it will certainly be added to FlexColorScheme as well.

As for modifying the global TextTheme and many TextStyles on component theme leel, it is something you can do already with the FlexColorScheme API, just not from within the *Themes Playground**. I do plan to add configs for some text sizes in the Playground in future version though.

More component TextStyles were added in the recent 8.0.0-dev.1 release. You could use them before too, but need to use copyWith override on produce ThemeData.


New release 8.0.0-dev.1

FlexColorScheme package dev release 8.0.0-dev.1 has been published. This is a BIG update with breaking changes and many new features. It has its own dev pre-release of the Themes Playground as well, feel free to take a look. No new API changes are planned for the stable 8.0.0 release from this dev.1 release.

We would appreciate any feedback about found issues from early adopters.

This issue is solved in the new release, but I will not close this issue until the stable version of 8.0.0 has been released.

FOR INFO there will be no new features or changes in it compared to this one. Only any issues found from the quality assurance will be addressed. The stable release will also include many doc updates, but docs site will continue to be edited and revised AFTER the 8.0.0 stable release.