LocaleSwitcher.iconButton constructor
const
LocaleSwitcher.iconButton({
- Key? key,
- String? toolTipPrefix = 'Current language: ',
- bool useEmoji = false,
- String? title = 'Select language: ',
- Icon? useStaticIcon,
- double iconRadius = 32,
- int numberOfShown = 200,
- bool showOsLocale = true,
- int useNLettersInsteadOfIcon = 0,
- ShapeBorder? shape = const CircleBorder(eccentricity: 0),
- dynamic setLocaleCallBack()?,
- MultiLangCountries multiLangCountries = MultiLangCountries.auto,
- bool multiLangForceAll = false,
- MultiLangBuilder? multiLangWidget,
- double specialFlagsPadding = 0,
A Widget to switch locale of App with IconButton.
Example: online app, example code - it is an icon in AppBar.
In popup window will be displayed LocaleSwitcher.grid.
Implementation
const LocaleSwitcher.iconButton({
super.key,
this.toolTipPrefix = 'Current language: ',
this.useEmoji = false,
this.title = 'Select language: ',
this.useStaticIcon,
this.iconRadius = 32,
this.numberOfShown = 200,
this.showOsLocale = true,
this.useNLettersInsteadOfIcon = 0,
this.shape = const CircleBorder(eccentricity: 0),
this.setLocaleCallBack,
this.multiLangCountries = MultiLangCountries.auto,
this.multiLangForceAll = false,
this.multiLangWidget,
this.specialFlagsPadding = 0,
}) : width = null,
type = LocaleSwitcherType.iconButton,
builder = null,
gridDelegate = null,
showLeading = false,
assert(!useEmoji || (useEmoji == (useNLettersInsteadOfIcon == 0)));