world_language_picker 1.0.4
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 π #
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 π¬ #
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
- GitHub: @muneeb-shahid
- LinkedIn: Muneeb Shahid
- Email: muneebshahid0102@gmail.com
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.