emoji_flag_converter
1.1.0, released 5 years ago by an unverified publisher
Convert alpha-2 country codes to emoji flags in Dart.
What it does
Provides a simple utility function to convert two-letter country codes into their corresponding emoji flag representations. It works as a pure Dart library across multiple platforms.
AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display emoji flags based on country codes.
- You are building a multi-platform Dart or Flutter app.
Skip it when
- You need full country name lookups or extensive locale management.
Strengths
- Pure Dart package with no dependencies.
- Simple and straightforward API.
Weaknesses
- Very limited scope with only one core utility feature.
- Not documented with advanced localization features.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Simply import the library and call the static conversion method.
import 'package:emoji_flag_converter/emoji_flag_converter.dart';
final flag = EmojiFlagConverter.fromAlpha2CountryCode('SG');Alternatives
Packages that do the same job and could replace emoji_flag_converter.
- country_code
Provides ISO 3166-1 country codes in an enum-like class with parsing and user-assigned elements.
77Compare - common_utils2
Production-focused Flutter utilities for notifications, storage, connectivity, and media.
55Compare - country_dial_code
Provides country dialing codes and a picker widget with SVG flags.
52Compare - flutter_regex
Collection of 1000+ regular expression patterns and extensions for string validation in Flutter.
49Compare