mail_launcher 0.0.1 copy "mail_launcher: ^0.0.1" to clipboard
mail_launcher: ^0.0.1 copied to clipboard

PlatformAndroidiOS
outdated

A new Flutter project.

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
50%
popularity

Publisher

unverified uploader

A new Flutter project.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on mail_launcher