app_lang_selector 0.4.0
app_lang_selector: ^0.4.0 copied to clipboard
A Flutter package for easy language selection with beautiful UI and state management support.
0.4.0 #
Added #
- Traditional Chinese (
zh-TW) translations for the selector page, andzh-TWinbundledLocales.繁體中文was already inlangsNameMap, so the entry rendered with its native name while the page chrome around it fell back tofallbackLocale.
0.3.1 #
Fixed #
- Narrowed the
riverpod_annotation/riverpod_generatorversion constraints and regeneratedselecting_lang.g.dart.riverpod_annotationexact-pins a specificriverpodcore release internally, and this package's previous^4.0.0range let a host app's pub resolution drift to a newerriverpod_annotation(and therefore a newerriverpodcore) than the committed generated code was built against, breaking compilation with errors likerunBuild/handleValuesignature mismatches.
0.3.0 #
Added #
onLangChangedcallback, invoked afterSelectingLang.setLangapplies a new language. Lets a host app observe language changes (e.g. for analytics) without depending on Riverpod.
0.2.0 #
Breaking #
- Namespaced the bundled translation keys with
app_lang_selector:. PkgsAssetLoadernow merges the app's translations over the packages'. Previously a package key silently overrode a key of the same name defined by the app.
Fixed #
- Migrated off the
Radio.groupValue/Radio.onChangedpair deprecated in Flutter 3.32; the page now uses aRadioGroupwithRadioListTile. LangCode.hashCodeusesObject.hashinstead of XOR.- The language selection no longer reads a possibly-disposed
refafter awaiting the locale change.
Added #
LangCode.system, the sentinel for "follow the system language".bundledLocales, the set of locales this package ships translations for.langsNameMapcovers far more languages than that and only drives the labels for the host app'ssupportedLocales; the two are now documented as distinct.
Changed #
langsNameMapis now unmodifiable.
0.1.0+4 #
- CHORE: upgrade riverpod_generator to ^4.0.0 and riverpod_lint to ^3.1.0.
0.1.0+3 #
- FIX: resolve crash risks and stale state issues found in code review.
- FIX: give example workspace members unique package names.
- FIX: bump app_lang_selector example SDK to ^3.5.0 for workspace support.
- FIX: include example apps as pub workspace members.
- FIX: reset repo link and homepage link.
- FIX: format and fix.
- FIX: use melos.
0.1.0+2 #
- FIX: give example workspace members unique package names.
- FIX: bump app_lang_selector example SDK to ^3.5.0 for workspace support.
- FIX: include example apps as pub workspace members.
0.1.0+1 #
- FIX: reset repo link and homepage link.
- FIX: format and fix.
- FIX: use melos.
0.1.0 #
- Update riverpod dependencies.
0.0.3 #
- Fix import bug.
0.0.2 #
- Add support for tr-TR language
0.0.1 #
- Initial release of app_lang_selector
- ✨ Easy-to-use language selection widgets
- 🌍 Support for 40+ languages with native names
- 🎨 Material Design 3 compatible UI
- 🔄 Built-in Riverpod state management
- 📱 Responsive design for all screen sizes
- 🎯 Seamless integration with easy_localization
- 📦 Complete example app included
- 📚 Comprehensive documentation and README
Features #
AppLangSelectTile: Ready-to-use ListTile for settings pagesAppLangSelectPage: Full-screen language selection pageselectingLangProvider: Riverpod provider for state managementLangCode: Helper class for language code managementlangsNameMap: Comprehensive mapping of language codes to native names
Supported Languages #
English, 日本語, 简体中文, 繁體中文, 한국어, Español, Français, Deutsch, Italiano, Português, Русский, العربية, Tiếng Việt, हिंदी, Polski, Nederlands, Türkçe, Українська, Svenska, Română, עברית, Български, Čeština, Dansk, Ελληνικά, Suomi, Magyar, Norsk, Slovenčina, Slovenščina, Српски, اردو, မြန်မာစာ, Kiswahili, Filipino, አማርኛ, پښتو, and more.