mail_launcher 0.0.2 icon indicating copy to clipboard operation
mail_launcher: ^0.0.2 copied to clipboard

Show Mail client selector on Android or iOS

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:mail_launcher/mail_launcher.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) => MaterialApp(
        home: Scaffold(
            appBar: AppBar(
              title: const Text('Mail launcher example'),
            ),
            body: Center(
              child: ElevatedButton(
                onPressed: () => MailLauncher.launch(
                  to: "to@example.com",
                  subject: "Subject",
                  body: "Body",
                  dialogTitle: "Choose"
                ),
                child: Text("Send"),
              ),
            )),
      );
}
0
likes
110
pub points
2%
popularity

Publisher

unverified uploader

Show Mail client selector on Android or iOS

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on mail_launcher