share_screenshot_widget 0.0.5 copy "share_screenshot_widget: ^0.0.5" to clipboard
share_screenshot_widget: ^0.0.5 copied to clipboard

This plugin allows Flutter apps to Sharing widget as Screenshot in (WhatsApp,Telegram, Instagram, Facebook Messenger).

example/lib/main.dart

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

// import package
///import package
void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Share screenshot widget',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Share screenshot widget'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  ShareWidgets sharing = ShareWidgets();
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: sharing.containerScreenshot(
          child: const Text(
            'Share screenshot widget.',
          ),
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () async {
          ShareWidgets sharing = ShareWidgets();

          sharing.shareWidgets();
        },
        child: const Icon(Icons.share),
      ),
    );
  }
}
19
likes
150
points
95
downloads

Publisher

verified publisherflutteriraqi.com

Weekly Downloads

This plugin allows Flutter apps to Sharing widget as Screenshot in (WhatsApp,Telegram, Instagram, Facebook Messenger).

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, path_provider, share_plus

More

Packages that depend on share_screenshot_widget