Flutter package for opening a mail app on iOS or Android.
Open the pubspec.yaml file and look for the dependencies section. Add the launch_mail_app 1.0.0 dependency:
dependencies:
launch_mail_app:
git:
url: https://github.com/claudiu-mn/launch_mail_app
ref: 1.0.0- Import the library:
import 'package:launch_mail_app/launch_mail_app.dart';- Use the library:
- Check if a mail app can be opened:
bool canOpenMail = await LaunchMailApp.canLaunch;- Open a mail app:
LaunchMailApp.launch();