FlCountryCodePicker constructor

const FlCountryCodePicker({
  1. Widget? title,
  2. Color defaultAppbarBackgroundColor = Colors.white,
  3. Color defaultAppbarForegroundColor = Colors.black,
  4. Color defaultAppbarCloseIconBackgroundColor = const Color.fromARGB(255, 224, 224, 224),
  5. String defaultAppbarText = 'Select Country Code',
  6. IconData defaultAppbarCloseIcon = Icons.clear_rounded,
  7. bool localize = true,
  8. double? horizontalTitleGap,
  9. InputDecoration? searchBarDecoration,
  10. bool showDialCode = true,
  11. bool showSearchBar = true,
  12. List<String> favorites = const [],
  13. List<String> filteredCountries = const [],
  14. Icon? favoritesIcon,
  15. TextStyle? countryTextStyle,
  16. TextStyle? dialCodeTextStyle,
  17. 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,
});