Photo by Kelvin Yan on Unsplash
Slider widget from the material library is used to select a value from a range of values.
What if I told you, we can use emojis as values for label parameter in Slider widget?!
You can use codepoints of an emoji or a package like demoji to display emojis in the slider’s label.
u{1F499}
to display a .Demoji.blue_heart
.Here is another example in which different emojis are shown for different values.
That’s it for this one. Thank you for reading this
You can check out the source code of the app here. Feel free to contribute to the project by creating issues or sending pull-requests.
If you enjoyed reading this blog post, please take a moment to read our blog on creating a user-friendly certificate generator app with Flutter.