Update check_box_picker.dart (#1660)

This commit is contained in:
Serhii 2024-09-05 03:54:06 +03:00 committed by GitHub
parent e29e5d9f3c
commit 576dd49766
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
@ -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;
}