Skip to content

Instantly share code, notes, and snippets.

@corelmax
Created January 10, 2021 18:30
Show Gist options
  • Save corelmax/68a8e271b1205727b733ad4b535c67e0 to your computer and use it in GitHub Desktop.
Save corelmax/68a8e271b1205727b733ad4b535c67e0 to your computer and use it in GitHub Desktop.
@@ -31,7 +31,7 @@
child: FlatButton(
textColor: Colors.red,
onPressed: () {
- // we will do delete here
+ TodoList.of(context).removeTodoById(todo.id);
},
child: Text('Delete'),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment