Update README.md

This commit is contained in:
Salvatore Giordano
2020-04-05 12:31:17 +02:00
parent 8f9959cbe6
commit 7ade439518
2 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ Just add the `CountryLocalizations.delegate` in the list of your app delegates
Here is a list of properties available to customize your widget: Here is a list of properties available to customize your widget:
| Name | Type | Description | | Name | Type | Description |
|-|-| |-----|-----|------|
|onChanged| ValueChanged<CountryCode> | callback invoked when the selection changes | |onChanged| ValueChanged<CountryCode> | callback invoked when the selection changes |
|onInit| ValueChanged<CountryCode> | callback invoked during initialization of the widget | |onInit| ValueChanged<CountryCode> | callback invoked during initialization of the widget |
|initialSelection| String | used to set the initial selected value | |initialSelection| String | used to set the initial selected value |

View File

@@ -118,7 +118,7 @@ class CountryCodePickerState extends State<CountryCodePicker> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
Widget _widget; Widget _widget;
if (widget.builder != null) if (widget.builder != null)
_widget = GestureDetector( _widget = InkWell(
onTap: showCountryCodePickerDialog, onTap: showCountryCodePickerDialog,
child: widget.builder(selectedItem), child: widget.builder(selectedItem),
); );