Package selection guidance compiled from public package information, community data, and project usage.
Language Pickers is a Flutter package that simplifies the creation of language selection pickers. It provides pre-built, customizable widgets for selecting languages, supporting internationalization in apps with minimal effort. The package is designed to be flexible and easy to integrate, allowing developers to quickly implement language choice functionality across various UI contexts. It supports multiple languages and can be used in forms, settings screens, or any interface requiring language selection. The package is open-source and freely available for use in both personal and commercial projects.
Use cases
App localization setup
User language preference selection
Settings screen language picker
Multilingual form inputs
Internationalized app interfaces
Key features
Pre-built language picker widgets
Customizable UI components
Easy integration with Flutter
Supports internationalization
Open-source and free to use
Suitable for
Developers building multilingual apps
UI designers needing language selection tools
Projects requiring quick i18n implementation
Flutter beginners exploring pickers
Apps targeting global audiences
Considerations
Requires manual handling of language switching logic
No built-in translation support
Limited to UI selection, not language data management
May need additional packages for full i18n
Platform-specific behavior not explicitly documented
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
0.4.0 does not break your code. The old API still works, it only warns you.
Here is what to move to:
0.3.x
0.4.0
defaultLanguagesList (List<Map<String, String>>)
Languages.defaultLanguages (List<Language>)
languagesList: myMaps
languages: myLanguages
LanguagePickerUtils.getLanguageByIsoCode('ko')
Language.fromIsoCode('ko')
—
Languages.korean, Languages.english, …
One behaviour changed: an unknown ISO code now throws an ArgumentError
instead of an Exception. ArgumentError is an Error, so on Exception catch no longer catches it.
Every Language also has a nativeName now, and Language implements ==
and hashCode, so you can put it in a Set or use it as a Map key.
Getting Started
LanguagePickerDropdown example
import'package:language_pickers/language_pickers.dart';
Language _selectedDropdownLanguage = Language.fromIsoCode('ko');
// It's sample code of Dropdown Item.// nativeName is the name written in the language itself, e.g. '한국어'.Widget_buildDropdownItem(Language language) {
returnRow(
children: <Widget>[
SizedBox(
width: 8.0,
),
Text("${language.name} (${language.nativeName})"),
],
);
}
// BuilderLanguagePickerDropdown(
initialValue: 'ko',
itemBuilder: _buildDropdownItem,
onValuePicked: (Language language) {
_selectedDropdownLanguage = language;
print(_selectedDropdownLanguage.name);
print(_selectedDropdownLanguage.isoCode);
},
),
If a name or a native name is wrong, please make some issues on GitHub.
The names and the native names are based on the public ISO 639-1 code table.
Where the table lists several native writings for one language, this package
keeps one representative writing, so that it fits in a dropdown.