Skip to content

Commit

Permalink
feat: no checklist toggle when tapping text
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasn committed Jun 9, 2024
1 parent f87de66 commit 0f05d25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/features/tasks/ui/checkbox_item_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ class _CheckboxItemWidgetState extends State<CheckboxItemWidget> {
@override
Widget build(BuildContext context) {
return CheckboxListTile(
title: Text(widget.title),
title: GestureDetector(
onTap: () {
debugPrint('Tapped');
},
child: Text(widget.title),
),
value: _isChecked,
controlAffinity: ListTileControlAffinity.leading,
secondary: widget.onEdit != null
Expand Down
3 changes: 3 additions & 0 deletions lib/widgetbook.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ class WidgetbookApp extends StatelessWidget {
title: 'Create PR',
isChecked: true,
onChanged: (checked) {},
onEdit: () {
debugPrint('Edit');
},
),
),
WidgetbookUseCase(
Expand Down

0 comments on commit 0f05d25

Please sign in to comment.