Merge pull request #12 from chhaileng/main

fix enable/disable not working with custom widget
This commit is contained in:
Chandra Abdul Fattah
2023-10-20 10:08:02 +07:00
committed by GitHub

View File

@@ -161,7 +161,7 @@ class CountryCodePickerState extends State<CountryCodePicker> {
Widget internalWidget;
if (widget.builder != null) {
internalWidget = InkWell(
onTap: showCountryCodePickerDialog,
onTap: widget.enabled ? showCountryCodePickerDialog : null,
child: widget.builder!(selectedItem),
);
} else {