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.4

💡 Usage

Import the package:

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

print("Country Name :", country.name);       // Pakistan
print("Country Code :", country.code);   // PK
print("Country Currency : ",country.currency);  // PKR
print("Country Dialing Code : ",country.phoneCode);  // +92

//Diplay Country Flag
 CountryFlag(
      countryCode: countryCode,
      shape: FlagShape.circle,
      size: 100,
);

🖼️ Preview

flutter_countryify example