Featured Image
Software Development

Flutter Slider 🎚 + Emojis 🌻 = 💙

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.

  • Codepoints for (Blue heart emoji) is U+1F499. So you can set label’s value to u{1F499} to display a .



  • If you’re using demoji package then you can set label’s value to Demoji.blue_heart.



Here is another example in which different emojis are shown for different values.

  • I’m using demoji package for this example.
  • Switch case is used to show different emoji for every value.
  • Here is the list of emojis available in this package.
  • This kind of slider can be used on the review page of an app. ( Food Review, Product Review, etc.)




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.

author
Tirth Patel
I'm a Flutter App Developer at Aubergine Solutions Pvt. Ltd. I'm passionate about mobile application development & open-source technologies. My expertise includes Dart, Flutter, Python, Git, Firebase, SQLite, Java. This year I was nominated as a recommended candidate to attend Google I/O 2019 conference from the Google India Scholars community. (Google India Challenge Scholarship 2018) I've delivered several talks in local communities on topics ranging from Functional Programming in Dart to Getting Started with Flutter.