Adds background color to selection dialog

This commit is contained in:
Gloria Ngo
2020-11-26 21:16:50 -05:00
parent c283da595f
commit 3cd61a0b9e
2 changed files with 10 additions and 1 deletions

View File

@@ -37,6 +37,9 @@ class CountryCodePicker extends StatefulWidget {
/// the size of the selection dialog
final Size dialogSize;
/// Background color of selection dialog
final Color dialogBackgroundColor;
/// used to customize the country list
final List<String> countryFilter;
@@ -97,6 +100,7 @@ class CountryCodePicker extends StatefulWidget {
this.countryFilter,
this.hideSearch = false,
this.dialogSize,
this.dialogBackgroundColor,
this.closeIcon = const Icon(Icons.close),
Key key,
}) : super(key: key);
@@ -260,6 +264,7 @@ class CountryCodePickerState extends State<CountryCodePicker> {
: widget.showFlag,
flagWidth: widget.flagWidth,
size: widget.dialogSize,
backgroundColor: widget.dialogBackgroundColor,
hideSearch: widget.hideSearch,
closeIcon: widget.closeIcon,
),