simple_flag_picker 0.0.2 copy "simple_flag_picker: ^0.0.2" to clipboard
simple_flag_picker: ^0.0.2 copied to clipboard

A simple Flutter widget to pick a country flag and change locale.

🏳️ 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
1
likes
140
points
151
downloads

Publisher

unverified uploader

Weekly Downloads

A simple Flutter widget to pick a country flag and change locale.

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

cupertino_icons, flutter, flutter_svg

More

Packages that depend on simple_flag_picker