Merge pull request #12 from chhaileng/main
fix enable/disable not working with custom widget
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user