From ef3bb23d3e5ed1e1b8d8577027cc2e0a770637c4 Mon Sep 17 00:00:00 2001 From: vlfr1997 <49419833+vlfr1997@users.noreply.github.com> Date: Thu, 24 Sep 2020 18:40:19 -0300 Subject: [PATCH] Update country_code_picker.dart --- lib/country_code_picker.dart | 3 +++ 1 file changed, 3 insertions(+) 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) {