-
After using flex_color_scheme, in addition to the prepaid theme, how can I switch to the theme of M3's dynamic adaptive wallpaper |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi @maxfrees, I guess what you mean with "M3's dynamic adaptive wallpaper" is the And prepaid is premade I suppose, since they are all free 😄 If so this is a new feature just made available in the pre-release of FlexColorScheme version 8.0.0.
Quick demo: Trimmed.movIf on the other hand you actually refer to using the current wallpaper, or Android system theme colors, as input for you own app's theme, then you need to use the package https://pub.dev/packages/dynamic_color to first extract such system colors. You can then use either the fully extracted |
Beta Was this translation helpful? Give feedback.
-
Yes, I'm referring to using the current wallpaper or Android system theme color as the app theme |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Yes the colors from the native system can only be extracted with native API using libs from Google called https://pub.dev/packages/dynamic_color. As mentioned you can use it in combo with FlexColorScheme too. Someday I should add an example of that. Will add it to my todo list. But bascially get the color scheme from it first, then either use its entire result as input to FlexColorScheme and its colorScheme prop, or use a few colors from the ColorScheme you get from it as seed/key color in FlexColorsScheme to make a new, a bit tuned ColorScheme that has its own twist in relation to the one you got from DynamicColor. The switch works as expected. I admit it is a but unusual UX. It is "multifunctional". It both Turns ON/OFF using seeding at all and also allows you to select which color palettes should use their input color as seed colors. You can only turn it ON by first enabling using the primary color as seed color, as a seed/key color for the ColorScheme, by clicking Primary option, you then get the option to also toggle using the other seed colors, individually. If you then toggle OFF primary, everything turns off, and seeding is not used at all, as it always has to be used, seeding cannot be used without it. To use seed generation you must always use at least primary. When you turn it on using primary again, it remembers the other selections you had when you turned OFF primary, so you don't have to toggle them back to the selection you made before when it was on. Since this is more of discussion and not an issue. I'm going to convert this to Discussion and keep it around there as a Q&A, we can continue the discussion there 😄 |
Beta Was this translation helpful? Give feedback.
Hi @maxfrees, I guess what you mean with "M3's dynamic adaptive wallpaper" is the
DynamicSchemeVariants
in Flutter'sColorScheme.fromSeed(variant)
property?And prepaid is premade I suppose, since they are all free 😄
If so this is a new feature just made available in the pre-release of FlexColorScheme version 8.0.0.