LocaleSwitcher.grid constructor
const
LocaleSwitcher.grid({
- Key? key,
- SliverGridDelegate? gridDelegate,
- int numberOfShown = 200,
- bool showOsLocale = true,
- dynamic setLocaleCallBack()?,
- int useNLettersInsteadOfIcon = 0,
- ShapeBorder? shape = const CircleBorder(eccentricity: 0),
- bool useEmoji = false,
- bool multiLangForceAll = false,
- MultiLangCountries multiLangCountries = MultiLangCountries.onlyFlag,
- MultiLangBuilder? multiLangWidget,
- double specialFlagsPadding = 0,
A Widget to switch locale of App with GridView.
Example: online app, example code - click on icon in AppBar to see this widget.
Implementation
const LocaleSwitcher.grid({
super.key,
this.gridDelegate,
this.numberOfShown = 200,
this.showOsLocale = true,
this.setLocaleCallBack,
this.useNLettersInsteadOfIcon = 0,
this.shape = const CircleBorder(eccentricity: 0),
this.useEmoji = false,
this.multiLangForceAll = false,
this.multiLangCountries = MultiLangCountries.onlyFlag,
this.multiLangWidget,
this.specialFlagsPadding = 0,
}) : type = LocaleSwitcherType.grid,
width = null,
title = '',
builder = null,
useStaticIcon = null,
toolTipPrefix = '',
iconRadius = 32,
showLeading = true,
assert(!useEmoji || (useEmoji == (useNLettersInsteadOfIcon == 0)));