mail_launcher 0.0.2 copy "mail_launcher: ^0.0.2" to clipboard
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
130
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

Show Mail client selector on Android or iOS

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on mail_launcher