🏳️ Simple Flag Picker

pub package likes pub points platform

A simple and customizable country flag picker widget using SVG assets, for Flutter apps.
Works great with localization and supports Web, iOS, Android.


Features

  • Display country flags from SVG assets
  • Change selected locale code via onChanged
  • 200+ supported countries (ISO 3166-1 alpha-2)
  • Handles missing SVGs gracefully with fallback icon
  • Shows loading spinner while rendering SVG
  • Supports custom text style and padding

📸 Preview

SimpleFlagPicker(
  selectedCode: 'th',
  onChanged: (code) => print('Selected: $code'),
  flagSize: 32,
  textStyle: TextStyle(fontSize: 16),
)

Getting Started

Install

Add to your pubspec.yaml:

dependencies:
  simple_flag_picker: ^0.0.1

Libraries

simple_flag_picker