Skip to content

Instantly share code, notes, and snippets.

@hydroweaver
Created May 26, 2020 09:26
Show Gist options
  • Save hydroweaver/5f10947dd910feb3d276fc88aecdbd74 to your computer and use it in GitHub Desktop.
Save hydroweaver/5f10947dd910feb3d276fc88aecdbd74 to your computer and use it in GitHub Desktop.
CheckboxListTile(
value: toggle,
onChanged: (bool){
setState(() {
if(!bool){
toggle = false;
}
else{
toggle = true;
}
});
},
key: Key(item),
title: _strikeThrough(todoText: item, todoToggle: toggle),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment