-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
final bool canSend = await FlutterMailer.canSendMail();
if(!canSend && Platform.isIOS) {
final url = 'mailto:?body=$body&subject=$subject';
if (await canLaunch(url)) {
await launch(url);
} else {
print("FlutterMailer");
createAlertDialog(BuildContext context) {
return showDialog(context: context, builder: (context) {
return AlertDialog(
title: Text('Delete all samples'),
content: Text('Are you sure you want to delete?'),
actions: [
MaterialButton(
child: Text('Ok'),
onPressed: () {
// Navigator.of(context).pop(SampleList());
},
),
],
);
});
}
throw 'Could not launch $url';
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request