Created
January 10, 2021 18:30
-
-
Save corelmax/68a8e271b1205727b733ad4b535c67e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -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