locale_switcher library
A widget for switching the locale of your application.
Classes
- DropDownMenuLanguageSwitch
- GridOfLanguages
- LangIconWithToolTip
- Just icon, no action assigned.
- LocaleManager
- An alternative to LocaleManager, This should be a parent to either MaterialApp or CupertinoApp.
- LocaleSwitcher
- A Widget to switch locale of App.
- SelectLocaleButton
- IconButton to show and select a language.
- ToggleLanguageSwitch
Constants
- showOtherLocales → const String
-
'show_other_locales'
Functions
-
getIconForLanguage(
String langCode, [bool? foreground, double? radius]) → Widget -
Return Icon widget for
langCode
-
showSelectLocaleDialog(
BuildContext context, {String title = 'Select language', double? width, double? height, SliverGridDelegate? gridDelegate}) → Future< void> - Show popup dialog to select Language.
Typedefs
-
LocaleSwitchBuilder
= Widget Function(List<
String> )