diff --git a/lib/screens/notes/note_detail_screen.dart b/lib/screens/notes/note_detail_screen.dart index ab68025..1de5cef 100644 --- a/lib/screens/notes/note_detail_screen.dart +++ b/lib/screens/notes/note_detail_screen.dart @@ -54,15 +54,17 @@ class NoteDetailScreen extends ConsumerWidget { onPressed: () async { final confirm = await showDialog( context: context, - builder: (_) => AlertDialog( + builder: (dialogContext) => AlertDialog( title: const Text('Delete note?'), actions: [ TextButton( - onPressed: () => Navigator.pop(context, false), + onPressed: () => + Navigator.pop(dialogContext, false), child: const Text('Cancel'), ), TextButton( - onPressed: () => Navigator.pop(context, true), + onPressed: () => + Navigator.pop(dialogContext, true), child: const Text('Delete'), ), ],