Skip to content

Commit

Permalink
Update check_box_picker.dart (#1660)
Browse files Browse the repository at this point in the history
  • Loading branch information
Serhii-Borodenko authored Sep 5, 2024
1 parent e29e5d9 commit 576dd49
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/src/widgets/check_box_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ class CheckBoxPickerState extends State<CheckBoxPicker> {

return GestureDetector(
onTap: () {
if (item.isDisabled) {
return;
}

bool newValue = !item.value;
item.value = newValue;
widget.onChanged(index, newValue);
Expand All @@ -134,7 +130,7 @@ class CheckBoxPickerState extends State<CheckBoxPicker> {
borderColor: Theme.of(context).dividerColor,
iconColor: Colors.white,
onChanged: (bool? value) {
if (value == null || item.isDisabled) {
if (value == null) {
return;
}

Expand Down

0 comments on commit 576dd49

Please sign in to comment.