fix enable/disable not working with custom widget
This commit is contained in:
1 parent
6ee7de3511
commit
4b86567052
1 file changed
+1
-1
@@ -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