world_language_picker 1.0.4 copy "world_language_picker: ^1.0.4" to clipboard
world_language_picker: ^1.0.4 copied to clipboard

A customizable Flutter language picker supporting 50+ world languages with native emoji flags, instant search, and zero external dependencies.

World Language Picker 🌍 #

pub package likes pub points License: MIT

A modern, fast, zero-dependency Flutter language picker supporting 50+ world languages with native flag emojis, instant search filtering, and clean UI.


πŸ“¦ Pub.dev Package #

View and install this package directly from pub.dev/packages/world_language_picker.



Preview 🎬 #

World Language Picker Demo


Features πŸš€ #

  • 🌐 50+ Pre-configured World Languages with ISO 639-1 language codes.
  • 🏁 Native Emoji Flags with zero external image assets.
  • ⚑ Zero External Dependencies β€” lightweight, fast, and framework agnostic.
  • πŸ” Instant Search Filtering by English name, Native name, or ISO code.
  • 🎨 Fully Customizable β€” adjust primary colors, background, border radius, and titles.

Installation πŸ“¦ #

Add world_language_picker to your pubspec.yaml dependencies:

dependencies:
  world_language_picker: ^1.0.4

Or run this command in your terminal:

flutter pub add world_language_picker


Usage πŸ’‘ #

Basic Example #

Open the language picker bottom sheet with a single function call:

import 'package:flutter/material.dart';
import 'package:world_language_picker/world_language_picker.dart';

void openLanguagePicker(BuildContext context) async {
  final Language? selectedLanguage = await WorldLanguagePicker.showBottomSheet(
    context,
    primaryColor: const Color(0xFF6366F1),
    title: 'Select Language',
    searchHint: 'Search language...',
  );

  if (selectedLanguage != null) {
    print('Native Name: ${selectedLanguage.nativeName}'); // e.g. EspaΓ±ol
    print('English Name: ${selectedLanguage.name}');      // e.g. Spanish
    print('ISO Code: ${selectedLanguage.code}');           // e.g. es
    print('Country Code: ${selectedLanguage.countryCode}');// e.g. ES
  }
}

If you only need to get a native flag emoji from a 2-letter ISO country code without opening the bottom sheet, use WorldLanguagePicker.getCountryFlagEmoji():

String usFlag = WorldLanguagePicker.getCountryFlagEmoji('US'); // Returns πŸ‡ΊπŸ‡Έ
String pkFlag = WorldLanguagePicker.getCountryFlagEmoji('PK'); // Returns πŸ‡΅πŸ‡°
String esFlag = WorldLanguagePicker.getCountryFlagEmoji('ES'); // Returns πŸ‡ͺπŸ‡Έ


Author πŸ‘¨β€πŸ’» #

Muneeb Shahid


Contributing 🀝 #

Contributions, issues, and feature requests are welcome!

Feel free to check out the Issues Page if you want to contribute.


License πŸ“„ #

This project is licensed under the MIT License - see the LICENSE file for details.

2
likes
140
points
278
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter language picker supporting 50+ world languages with native emoji flags, instant search, and zero external dependencies.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on world_language_picker