Refs #120: Center selection dialog
This commit is contained in:
@@ -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(() {
|
||||||
|
|||||||
Reference in New Issue
Block a user