v1.1.0
emoji_flag_converter
A dart library for converting country codes to emoji flags.
18Likes 44.4K30-day downloads150Pub points
AndroidiOSWebmacOSWindowsLinux
A simple dart package to convert alpha 2 country codes (SG) to emoji flags 🇸🇬 🤟
English project snapshot. Visit GitHub for the latest content.
A simple dart package to convert alpha 2 country codes (SG) to emoji flags 🇸🇬 🤟
Import the class into your dart file.
import 'package:emoji_flag_converter/emoji_flag_converter.dart';
Then you can call it in your code like this to get the emoji flag in return.
String convertToEmoji(String countryCode) {
return EmojiConverter.fromAlpha2CountryCode(code);
}
And that's it!
Dependency list 1 items
^1.17.8Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗