locale_emoji 1.0.0 copy "locale_emoji: ^1.0.0" to clipboard
locale_emoji: ^1.0.0 copied to clipboard

Convert Locale (language code, script code and country code) to the corresponding Emoji Flag

example/locale_emoji_example.dart

import 'package:locale_emoji/locale_emoji.dart' as le;

void main() {
  print(le.getFlagEmoji(languageCode: 'de')); // 'πŸ‡©πŸ‡ͺ'
  print(le.getFlagEmoji(languageCode: 'de', countryCode: 'DE')); // 'πŸ‡©πŸ‡ͺ'
  print(le.getFlagEmoji(languageCode: 'de', countryCode: 'CH')); // 'πŸ‡¨πŸ‡­'
  print(le.getFlagEmoji(languageCode: 'en')); // 'πŸ‡ΊπŸ‡Έ'
  print(le.getFlagEmoji(languageCode: 'en', countryCode: 'US')); // 'πŸ‡ΊπŸ‡Έ'
  print(le.getFlagEmoji(languageCode: 'pt')); // 'πŸ‡§πŸ‡·'
  print(le.getFlagEmoji(languageCode: 'zh')); // 'πŸ‡¨πŸ‡³'
  print(le.getFlagEmoji(languageCode: 'zh', countryCode: 'TW')); // 'πŸ‡ΉπŸ‡Ό'
}
3
likes
160
points
249
downloads

Publisher

verified publishermichaeldark.dev

Weekly Downloads

Convert Locale (language code, script code and country code) to the corresponding Emoji Flag

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on locale_emoji