NyLanguageSwitcher constructor
const
NyLanguageSwitcher({
- Key? key,
- Widget? icon,
- Color? iconEnabledColor,
- Color? dropdownBgColor,
- dynamic onLanguageChange()?,
- Widget? hint,
- double itemHeight = kMinInteractiveDimension,
- Widget dropdownBuilder()?,
- AlignmentGeometry dropdownAlignment = AlignmentDirectional.centerStart,
- dynamic dropdownOnTap()?,
- EdgeInsetsGeometry? padding,
- dynamic onTap()?,
- BorderRadius? borderRadius,
- double iconSize = 24,
- int elevation = 8,
- String langPath = 'lang',
- TextStyle textStyle = const TextStyle(color: Colors.black),
Implementation
const NyLanguageSwitcher(
{super.key,
this.icon,
this.iconEnabledColor,
this.dropdownBgColor,
this.onLanguageChange,
this.hint,
this.itemHeight = kMinInteractiveDimension,
this.dropdownBuilder,
this.dropdownAlignment = AlignmentDirectional.centerStart,
this.dropdownOnTap,
this.padding,
this.onTap,
this.borderRadius,
this.iconSize = 24,
this.elevation = 8,
this.langPath = 'lang',
this.textStyle = const TextStyle(color: Colors.black)});