File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,10 @@ class _FormBuilderCountryPickerState extends State<FormBuilderCountryPicker> {
136
136
builder: (BuildContext context) {
137
137
return CountryPickerCupertino (
138
138
pickerSheetHeight: widget.cupertinoPickerSheetHeight ?? 300.0 ,
139
- onValuePicked: (Country value) => field.didChange (value),
139
+ onValuePicked: (Country value) {
140
+ field.didChange (value);
141
+ widget.onChanged? .call (value);
142
+ },
140
143
itemFilter: widget.countryFilterByIsoCode != null
141
144
? (c) => widget.countryFilterByIsoCode.contains (c.isoCode)
142
145
: null ,
@@ -169,7 +172,10 @@ class _FormBuilderCountryPickerState extends State<FormBuilderCountryPicker> {
169
172
'Select Your Country' ,
170
173
style: widget.dialogTextStyle ?? widget.style,
171
174
),
172
- onValuePicked: (Country value) => field.didChange (value),
175
+ onValuePicked: (Country value) {
176
+ field.didChange (value);
177
+ widget.onChanged? .call (value);
178
+ },
173
179
itemFilter: widget.countryFilterByIsoCode != null
174
180
? (c) => widget.countryFilterByIsoCode.contains (c.isoCode)
175
181
: null ,
You can’t perform that action at this time.
0 commit comments