Search packages, repositories and app categories

Package detailsv1.1.0

emoji_flag_converter

A dart library for converting country codes to emoji flags.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
44.4K
Likes
18
Pub points
150

Install package

flutter pub add emoji_flag_converter

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Dart library that converts country codes (ISO 3166-1 alpha-2) into their corresponding emoji flags. It provides a simple and efficient way to display flags as emojis in Flutter applications, supporting all major platforms including mobile, web, and desktop. The package is lightweight and easy to integrate, making it ideal for localization, user interfaces with country selection, or any feature requiring visual country indicators.

Use cases

  • Displaying country flags in user profiles
  • Enhancing country selection UIs
  • Localizing app content by region
  • Showing flag emojis in chat or messaging apps
  • Adding visual cues in travel or international apps

Key features

  • Converts ISO country codes to emoji flags
  • Supports all major platforms
  • Lightweight and easy to use
  • No external dependencies
  • Accurate emoji representation

Suitable for

  • Flutter developers building internationalized apps
  • Apps with country-based features
  • UI components requiring flag visuals
  • Educational or travel applications

Considerations

  • Only supports ISO 3166-1 alpha-2 country codes
  • Emoji output may vary slightly across platforms
  • Does not include flag images or alternative formats

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

🏴 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!

Categories

Source repository

Projects using this package