diff --git a/lib/country_code_picker.dart b/lib/country_code_picker.dart index 1fa9672..6f9498d 100644 --- a/lib/country_code_picker.dart +++ b/lib/country_code_picker.dart @@ -23,6 +23,7 @@ class CountryCodePicker extends StatefulWidget { final Function(CountryCode) builder; final bool enabled; final TextOverflow textOverflow; + final Icon closeIcon; /// the size of the selection dialog final Size dialogSize; @@ -84,6 +85,7 @@ class CountryCodePicker extends StatefulWidget { this.countryFilter, this.hideSearch = false, this.dialogSize, + this.closeIcon = Icon(Icons.close), Key key, }) : super(key: key); @@ -245,6 +247,7 @@ class CountryCodePickerState extends State { flagWidth: widget.flagWidth, size: widget.dialogSize, hideSearch: widget.hideSearch, + closeIcon: widget.closeIcon, ), ).then((e) { if (e != null) {