Merge pull request #17 from juanmartin8a/optional-close-icon

Hide dialog close icon
This commit is contained in:
Chandra Abdul Fattah
2023-10-20 10:08:10 +07:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -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,
),