optional close icon
This commit is contained in:
@@ -75,6 +75,9 @@ class CountryCodePicker extends StatefulWidget {
|
||||
/// Set to true if you want to hide the search part
|
||||
final bool hideSearch;
|
||||
|
||||
/// Set to true if you want to hide the close icon dialog
|
||||
final bool hideCloseIcon;
|
||||
|
||||
/// Set to true if you want to show drop down button
|
||||
final bool showDropDownButton;
|
||||
|
||||
@@ -114,6 +117,7 @@ class CountryCodePicker extends StatefulWidget {
|
||||
this.comparator,
|
||||
this.countryFilter,
|
||||
this.hideSearch = false,
|
||||
this.hideCloseIcon = false,
|
||||
this.showDropDownButton = false,
|
||||
this.dialogSize,
|
||||
this.dialogBackgroundColor,
|
||||
@@ -305,6 +309,7 @@ class CountryCodePickerState extends State<CountryCodePicker> {
|
||||
backgroundColor: widget.dialogBackgroundColor,
|
||||
barrierColor: widget.barrierColor,
|
||||
hideSearch: widget.hideSearch,
|
||||
hideCloseIcon: widget.hideCloseIcon,
|
||||
closeIcon: widget.closeIcon,
|
||||
flagDecoration: widget.flagDecoration,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user