Refs #120: Center selection dialog

This commit is contained in:
Salvatore Giordano
2020-10-28 18:42:10 +01:00
parent eb81bf7c64
commit 28715551ee

View File

@@ -245,7 +245,8 @@ class CountryCodePickerState extends State<CountryCodePicker> {
barrierColor: widget.barrierColor ?? Colors.grey.withOpacity(0.5), barrierColor: widget.barrierColor ?? Colors.grey.withOpacity(0.5),
backgroundColor: widget.backgroundColor ?? Colors.transparent, backgroundColor: widget.backgroundColor ?? Colors.transparent,
context: context, context: context,
builder: (context) => SelectionDialog( builder: (context) => Center(
child: SelectionDialog(
elements, elements,
favoriteElements, favoriteElements,
showCountryOnly: widget.showCountryOnly, showCountryOnly: widget.showCountryOnly,
@@ -262,6 +263,7 @@ class CountryCodePickerState extends State<CountryCodePicker> {
hideSearch: widget.hideSearch, hideSearch: widget.hideSearch,
closeIcon: widget.closeIcon, closeIcon: widget.closeIcon,
), ),
),
).then((e) { ).then((e) {
if (e != null) { if (e != null) {
setState(() { setState(() {