Skip to content

Commit 00d938d

Browse files
committed
checkbox radio button component
1 parent 69445c0 commit 00d938d

File tree

1 file changed

+28
-25
lines changed

1 file changed

+28
-25
lines changed

lib/components/checkboxListTile/gf_checkbox_list_tile.dart

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -151,32 +151,35 @@ class _GFCheckboxListTileState extends State<GFCheckboxListTile> {
151151
// isSelected = !isSelected;
152152
// });
153153
// },
154-
child: GFListTile(
155-
156-
avatar: widget.avatar,
157-
titleText: widget.titleText,
158-
subTitle: widget.subTitle,
159-
subtitleText: widget.subtitleText,
160-
description: widget.description,
161-
color: widget.color,
162-
padding: widget.padding,
163-
margin: widget.margin,
164-
title: widget.title,
165-
icon: GFCheckbox(
166-
size: widget.size,
167-
activebgColor: widget.activebgColor,
168-
onChanged:widget.onChanged,
169-
value: widget.value,
170-
inactiveIcon: widget.inactiveIcon,
171-
activeBorderColor: widget.activeBorderColor,
172-
inactivebgColor: widget.inactivebgColor,
173-
activeIcon: widget.activeIcon,
174-
inactiveBorderColor: widget.inactiveBorderColor,
175-
custombgColor: widget.custombgColor,
176-
checkColor: widget.checkColor,
177-
type: widget.type,
154+
child: GestureDetector(
155+
156+
child: GFListTile(
157+
avatar: widget.avatar,
158+
titleText: widget.titleText,
159+
subTitle: widget.subTitle,
160+
subtitleText: widget.subtitleText,
161+
description: widget.description,
162+
color: widget.color,
163+
padding: widget.padding,
164+
margin: widget.margin,
165+
title: widget.title,
166+
167+
icon: GFCheckbox(
168+
size: widget.size,
169+
activebgColor: widget.activebgColor,
170+
// onChanged:widget.onChanged,
171+
// value: widget.value,
172+
inactiveIcon: widget.inactiveIcon,
173+
activeBorderColor: widget.activeBorderColor,
174+
inactivebgColor: widget.inactivebgColor,
175+
activeIcon: widget.activeIcon,
176+
inactiveBorderColor: widget.inactiveBorderColor,
177+
custombgColor: widget.custombgColor,
178+
checkColor: widget.checkColor,
179+
type: widget.type,
180+
),
178181
),
179-
),
182+
)
180183
);
181184
// InkWell(
182185
// onTap: onStatusChange,

0 commit comments

Comments
 (0)