LocaleSwitcher.segmentedButton constructor
const
LocaleSwitcher.segmentedButton({
- Key? key,
- bool useEmoji = false,
- double? width,
- double iconRadius = 32,
- int numberOfShown = 4,
- bool showOsLocale = true,
- int useNLettersInsteadOfIcon = 0,
- ShapeBorder? shape,
- dynamic setLocaleCallBack()?,
- double specialFlagsPadding = 2,
- bool multiLangForceAll = false,
- MultiLangCountries multiLangCountries = MultiLangCountries.auto,
- MultiLangBuilder? multiLangWidget,
A Widget to switch locale of App with SegmentedButton.
Example: online app, example code .
Implementation
const LocaleSwitcher.segmentedButton({
super.key,
this.useEmoji = false,
this.width,
this.iconRadius = 32,
this.numberOfShown = 4,
this.showOsLocale = true,
this.useNLettersInsteadOfIcon = 0,
this.shape,
this.setLocaleCallBack,
this.specialFlagsPadding = 2,
this.multiLangForceAll = false,
this.multiLangCountries = MultiLangCountries.auto,
this.multiLangWidget,
}) : type = LocaleSwitcherType.segmentedButton,
title = '',
builder = null,
useStaticIcon = null,
toolTipPrefix = '',
showLeading = true,
gridDelegate = null,
assert(!useEmoji || (useEmoji == (useNLettersInsteadOfIcon == 0)));