Skip to content

Commit 58904cc

Browse files
committed
handle null for tristate
1 parent 85b2eed commit 58904cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/src/widgets/grouped_checkbox.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,9 @@ class GroupedCheckbox<T> extends StatelessWidget {
256256
focusColor: focusColor,
257257
hoverColor: hoverColor,
258258
materialTapTargetSize: materialTapTargetSize,
259-
value: true == value?.contains(optionValue),
259+
value: tristate
260+
? value?.contains(optionValue)
261+
: true == value?.contains(optionValue),
260262
tristate: tristate,
261263
onChanged: isOptionDisabled
262264
? null

0 commit comments

Comments
 (0)