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.