Skip to content

A simple dart package to convert alpha 2 country codes (SG) to emoji flags ๐Ÿ‡ธ๐Ÿ‡ฌ ๐ŸคŸ

License

Notifications You must be signed in to change notification settings

flikkr/emoji_flag_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿด emoji_flag_converter ๐Ÿณ๏ธ

A simple dart package to convert alpha 2 country codes (SG) to emoji flags ๐Ÿ‡ธ๐Ÿ‡ฌ ๐ŸคŸ

Usage

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!

About

A simple dart package to convert alpha 2 country codes (SG) to emoji flags ๐Ÿ‡ธ๐Ÿ‡ฌ ๐ŸคŸ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages