flutter_countryify 0.0.3 copy "flutter_countryify: ^0.0.3" to clipboard
flutter_countryify: ^0.0.3 copied to clipboard

A Flutter package to get country details (name, code, currency) and flag widgets in square, rounded, or circle shapes.

flutter_countryify #

A Flutter package to display country details including flags, name, currency, and phone code.

✨ Features #

✅ Get country by name or code
✅ Display SVG flags in square, circle, rounded, or rectangle shapes
✅ Built-in 270+ countries data
✅ Offline and lightweight


🚀 Installation #

Add this to your pubspec.yaml:

dependencies:
  flutter_countryify: ^0.0.3

💡 Usage #

Import the package:

import 'package:flutter_countryify/flutter_countryify.dart';
final country = CountryData.fromCode('PK');

print(country.name);       // Pakistan
print(country.currency);   // PKR
print(country.phoneCode);  // +92

//Diplay Country Flag
CountryFlag(
  countryCode: 'PK',
  shape: FlagShape.circle,    // FlagShape.square, FlagShape.rounded
  width: 50,
  height: 50,
);

🖼️ Preview #

flutter_countryify example

2
likes
150
points
40
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package to get country details (name, code, currency) and flag widgets in square, rounded, or circle shapes.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on flutter_countryify