How to use custom surface blend color? #38
-
Hello! I was wondering how one could use a custom blend coloring with the Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Hi @davidmartos96, Thanks for your question. Are you wondering how to use surface blends with In FlexColorSchemeIf about To see how to just use it with If you used the Themes Playground app https://rydmike.com/flexcolorschemeV4Tut5, and vary the surface mode and look at the code it generates, before and after changes of them, you cans see how to use it too. theme: FlexThemeData.light(
scheme: FlexScheme.blumineBlue,
surfaceMode: FlexSurfaceMode.highScaffoldLowSurface,
blendLevel: 20,
),
darkTheme: FlexThemeData.dark(
scheme: FlexScheme.blumineBlue,
surfaceMode: FlexSurfaceMode.highScaffoldLevelSurface,
blendLevel: 15,
), If you are a bit daring and want to try the development version of FlexColorScheme version 5* It has an even fancier WEB app where you can see API code side by side (if your WEB desktop screen is wide enough) as you modify settings and you can more easily copy the code at any point: The API for most things are unchanged from version 4 to version 5, there are just many more things in version5. Version 5 is ready for release and stable now, but documentation is not done yet and I won't release it as stable before it is. Outside FlexColorSchemeYou can if you want to use it to make blends for other purposes and custom themes, not even using |
Beta Was this translation helpful? Give feedback.
-
What I was wondering is if it was possible to blend with a custom color different from the primary color, inside the Flex Color theme |
Beta Was this translation helpful? Give feedback.
-
No, not currently, but you can of course use whatever color as your primary color. It would of course not be so difficult to provide a separate configurable custom blend color. The challenge is more to use it in a nice way. It is a bit tricky to produce results that automatically looks pretty and nice, if the blend color is very different from the primary "main" color of the app. As long as it is some close hue to it, it may work pretty well though and could provide options for even more varied styles and designs. I might try the idea in a future version, experiment with it first and see how it works visually. |
Beta Was this translation helpful? Give feedback.
-
Great, thanks for the answers! |
Beta Was this translation helpful? Give feedback.
-
@davidmartos96 for your info, with the release of FlexColorScheme version 5.1.0 I have added support for custom surface blend color. It uses the M3 ColorScheme.surfaceTint color as blend color as well. There is also support in the ThemesPlayground to customize it. |
Beta Was this translation helpful? Give feedback.
@davidmartos96 for your info, with the release of FlexColorScheme version 5.1.0 I have added support for custom surface blend color. It uses the M3 ColorScheme.surfaceTint color as blend color as well. There is also support in the ThemesPlayground to customize it.