fix enable/disable not working with custom widget
This commit is contained in:
@@ -161,7 +161,7 @@ class CountryCodePickerState extends State<CountryCodePicker> {
|
|||||||
Widget internalWidget;
|
Widget internalWidget;
|
||||||
if (widget.builder != null) {
|
if (widget.builder != null) {
|
||||||
internalWidget = InkWell(
|
internalWidget = InkWell(
|
||||||
onTap: showCountryCodePickerDialog,
|
onTap: widget.enabled ? showCountryCodePickerDialog : null,
|
||||||
child: widget.builder!(selectedItem),
|
child: widget.builder!(selectedItem),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user