Update country_code_picker.dart
This commit is contained in:
@@ -23,6 +23,7 @@ class CountryCodePicker extends StatefulWidget {
|
|||||||
final Function(CountryCode) builder;
|
final Function(CountryCode) builder;
|
||||||
final bool enabled;
|
final bool enabled;
|
||||||
final TextOverflow textOverflow;
|
final TextOverflow textOverflow;
|
||||||
|
final Icon closeIcon;
|
||||||
|
|
||||||
/// the size of the selection dialog
|
/// the size of the selection dialog
|
||||||
final Size dialogSize;
|
final Size dialogSize;
|
||||||
@@ -84,6 +85,7 @@ class CountryCodePicker extends StatefulWidget {
|
|||||||
this.countryFilter,
|
this.countryFilter,
|
||||||
this.hideSearch = false,
|
this.hideSearch = false,
|
||||||
this.dialogSize,
|
this.dialogSize,
|
||||||
|
this.closeIcon = Icon(Icons.close),
|
||||||
Key key,
|
Key key,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
@@ -245,6 +247,7 @@ class CountryCodePickerState extends State<CountryCodePicker> {
|
|||||||
flagWidth: widget.flagWidth,
|
flagWidth: widget.flagWidth,
|
||||||
size: widget.dialogSize,
|
size: widget.dialogSize,
|
||||||
hideSearch: widget.hideSearch,
|
hideSearch: widget.hideSearch,
|
||||||
|
closeIcon: widget.closeIcon,
|
||||||
),
|
),
|
||||||
).then((e) {
|
).then((e) {
|
||||||
if (e != null) {
|
if (e != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user