-
I want to give the user a choice of themes in my APP, but I have no idea how to display them, can I provide thumbnails of themes in themesplayground, I can't find them in the warehouse |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hi @jahnli and thanks for your question. If you want to you can certainly use the widget used above to make your own thumbnail theme selection too. The widget used to make the above thumbnail is actually a part of the package. Although it is not so difficult to build your own, but in very early version I was asked if I could add it as widget to the package, and I did and it is still around, just not very well advertised 😄 In the docs you can find a bit info about it here: https://docs.flexcolorscheme.com/deep_dives#flexthememodeswitch Where there are also links to its API docs. It was primary offered as a theme mode switch button: https://pub.dev/documentation/flex_color_scheme/latest/flex_color_scheme/FlexThemeModeSwitch-class.html but its building block just the box with the four colors is also available, https://pub.dev/documentation/flex_color_scheme/latest/flex_color_scheme/FlexThemeModeOptionButton-class.html As shown in the docs page it can be styled quite a bit: For some examples of how to use it as theme selector, then talking about the FlexThemeModeOptionButton, Here you can find the code for this full screen horizontal theme color selector and also for the vertical theme color selector using the theme thumbs and see how it was used in the Themes Playground app: In the Themes Playground colors panel, there is also a popup menu based theme selector:
In this case the code for the popup example is more "isolated" and it is a much easier example to use to see how it makes the theme color selection thumbs: This is just one way of making theme color thumb presentations, I've seen more elegant ways of providing a mini app as thumb with prominent colors shown on maybe 5 widgets. The thumbs used in this app is just one example that can also serve as a guide on how to make something even fancier. |
Beta Was this translation helpful? Give feedback.
Hi @jahnli and thanks for your question.
If you want to you can certainly use the widget used above to make your own thumbnail theme selection too. The widget used to make the above thumbnail is actually a part of the package. Although it is not so difficult to build your own, but in very early version I was asked if I could add it as widget to the package, and I did and it is still around, just not very well advertised 😄
In the docs you can find a bit info about it here: https://docs.flexcolorscheme.com/deep_dives#flexthememodeswitch
Where there are also links to its API docs. It was primary offered as a theme mode switch button: https://pub.dev/documentation/flex_color_scheme/latest/fle…