Update check_box_picker.dart (#1660)

Serhii committed Sep 5, 2024 at 03:54 UTC 576dd49766cfd8c2aaaeec6803a4e35986c618e3
1 file changed +1 -5
lib/src/widgets/check_box_picker.dart
+1 -5
@@ -113,10 +113,6 @@ class CheckBoxPickerState extends State<CheckBoxPicker> {
113
114 return GestureDetector(
115 onTap: () {
116 - if (item.isDisabled) {
117 - return;
118 - }
119 -
116 bool newValue = !item.value;
117 item.value = newValue;
118 widget.onChanged(index, newValue);
@@ -134,7 +130,7 @@ class CheckBoxPickerState extends State<CheckBoxPicker> {
130 borderColor: Theme.of(context).dividerColor,
131 iconColor: Colors.white,
132 onChanged: (bool? value) {
137 - if (value == null || item.isDisabled) {
133 + if (value == null) {
134 return;
135 }
136