CountrySelector constructor
const
CountrySelector({
- required ValueChanged<
Country> onCountrySelected, - required bool isBottomSheet,
- ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- bool addFavouriteSeparator = true,
- bool showCountryCode = false,
- String? noResultMessage,
- List<
IsoCode> favoriteCountries = const [], - List<
IsoCode> ? countries, - bool showSearchInput = true,
- TextStyle? countryCodeStyle,
- TextStyle? countryNameStyle,
- InputDecoration? searchInputDecoration,
- TextStyle? searchInputTextStyle,
- Color? defaultSearchInputIconColor,
- Color? bottomSheetDragHandlerColor,
- double flagSize = 48,
- BoxShape flagShape = BoxShape.circle,
- bool showCountryName = true,
- bool showCountryFlag = true,
- double? searchInputHeight,
- double? searchInputWidth,
- Key? key,
Implementation
const CountrySelector({
required this.onCountrySelected,
required this.isBottomSheet,
this.scrollController,
this.scrollPhysics,
this.addFavouriteSeparator = true,
this.showCountryCode = false,
this.noResultMessage,
this.favoriteCountries = const [],
this.countries,
this.showSearchInput = true,
this.countryCodeStyle,
this.countryNameStyle,
this.searchInputDecoration,
this.searchInputTextStyle,
this.defaultSearchInputIconColor,
this.bottomSheetDragHandlerColor,
this.flagSize = 48,
this.flagShape = BoxShape.circle,
this.showCountryName = true,
this.showCountryFlag = true,
this.searchInputHeight,
this.searchInputWidth,
super.key,
});