Implemented Language.nativeName
. Thank you butterbrain! PR-7.
Fixed deprecated TextStyles. Thank you sczesla and AhmedOs90!
Fixed bug when Language was being used as a Key in a Set or Map.
Implemented LanguagePickerDropdownController.
Restored finding a language by ISO code as Language.fromIsoCode(isoCode)
.
Breaking changes:
- Replaced
LanguagePickerUtils.getLanguageByIsoCode(isoCode)
byLanguages.languageName
. - Replaced
List<Map<String, String>> defaultLanguagesList
byList<Language> Languages.defaultLanguages
. - Replaced LanguagePickerDropdown's
String? initialValue
parameter byLanguage? initialValue
. - Replaced LanguagePickerDialog and LanguerPickerCupertino's
List<Map<String, String>>? languagesList
parameter byList<Language>> languages
.
Other:
- Implemented the
Language.==
operator. - Removed duplicate Norwegian language.
Documented usage example.
- Rename the library to to language_picker.
- Fixed LanguagePickerDropdown's layout to render well with Flex, eg when two of them are laid out in a Row.
- Changed LanguagePickerDropdown's
List<Map<String, String>> languagesList
toList<Language> languages
. - Introduced
Map<String, Language> defaultLanguageMap
andList<Language> defaultLanguages
. - Removed duplicate English language from the default list.
- Removed dates from Greek and Occitan, eg "Greek, Modern (1453-)" to "Greek".
- Migrated to null safety. Thank you spsarolkar!
See the original package's prior changes at https://pub.dev/packages/language_pickers/changelog.