Skip to content

Instantly share code, notes, and snippets.

@corelmax
Created January 10, 2021 17:43
Show Gist options
  • Save corelmax/7f0369f100f49560564dad34faf676d4 to your computer and use it in GitHub Desktop.
Save corelmax/7f0369f100f49560564dad34faf676d4 to your computer and use it in GitHub Desktop.
@@ -55,7 +55,14 @@
)
),
IconButton(icon: Icon(Icons.delete), onPressed: () {
- // delete todo item here
+ showDialog(
+ context: context,
+ builder: (dialogContext) {
+ return DeleteTodoDialog(
+ todo: todo,
+ );
+ },
+ );
})
],
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment