FlCountryCodePicker constructor
const
FlCountryCodePicker({
- Widget? title,
- Color defaultAppbarBackgroundColor = Colors.white,
- Color defaultAppbarForegroundColor = Colors.black,
- Color defaultAppbarCloseIconBackgroundColor = const Color.fromARGB(255, 224, 224, 224),
- String defaultAppbarText = 'Select Country Code',
- IconData defaultAppbarCloseIcon = Icons.clear_rounded,
- bool localize = true,
- double? horizontalTitleGap,
- InputDecoration? searchBarDecoration,
- bool showDialCode = true,
- bool showSearchBar = true,
- List<
String> favorites = const [], - List<
String> filteredCountries = const [], - Icon? favoritesIcon,
- TextStyle? countryTextStyle,
- TextStyle? dialCodeTextStyle,
- TextStyle? searchBarTextStyle,
A Flutter package for showing a modal that contains country dial code.
The user can also search for the available codes and select right from the modal.
Implementation
const FlCountryCodePicker({
this.title,
this.defaultAppbarBackgroundColor = Colors.white,
this.defaultAppbarForegroundColor = Colors.black,
this.defaultAppbarCloseIconBackgroundColor =
const Color.fromARGB(255, 224, 224, 224),
this.defaultAppbarText = 'Select Country Code',
this.defaultAppbarCloseIcon = Icons.clear_rounded,
this.localize = true,
this.horizontalTitleGap,
this.searchBarDecoration,
this.showDialCode = true,
this.showSearchBar = true,
this.favorites = const [],
this.filteredCountries = const [],
this.favoritesIcon,
this.countryTextStyle,
this.dialCodeTextStyle,
this.searchBarTextStyle,
});