open_share_pro 1.4.0 copy "open_share_pro: ^1.4.0" to clipboard
open_share_pro: ^1.4.0 copied to clipboard

discontinuedreplaced by: open_share_plus

Flutter Plugin for sharing contents to social media.You can use it share to Mail, Phone, WhatsApp And System Share UI.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:open_share_pro/open.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            ElevatedButton(
                onPressed: () {
                  Open.browser(url: "https://techdirr.com");
                },
                child: const Text("Open Browser")),
            const SizedBox(height: 20),
            ElevatedButton(
                onPressed: () {
                  Open.phone(phoneNumber: "+919879626497");
                },
                child: const Text("Open Phone Dial")),
            const SizedBox(height: 20),
            ElevatedButton(
                onPressed: () {
                  Open.mail(
                      toAddress: "dev@techdirr.com",
                      subject: "techdirr",
                      body: "techdirr dev");
                },
                child: const Text("Send Mail")),
            const SizedBox(height: 20),
            ElevatedButton(
                onPressed: () {
                  Open.whatsApp(
                      whatsAppNumber: "919879626497", text: "techdirr");
                },
                child: const Text("Send WhatsApp")),
            const SizedBox(height: 20)
          ],
        ),
      ),
    );
  }
}
5
likes
40
points
10
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter Plugin for sharing contents to social media.You can use it share to Mail, Phone, WhatsApp And System Share UI.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_web_plugins, open_filex, plugin_platform_interface, url_launcher

More

Packages that depend on open_share_pro

Packages that implement open_share_pro