Open Dionnie123 opened 2 weeks ago
Looks like I got it now, I just need to access form control value and give to onConfirm, it works but still not 100% sure.
TextButton(
child: const Text('Delete'),
onPressed: () {
onConfirm(formControl!.value![0]);
Navigator.of(dialogContext).pop(); // Dismiss the dialog
},
),
I tried many approach, the image still stays when I confirm delete on dialog.