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

outdated

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_widgets.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
0
points
71
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)
View/report issues

License

unknown (license)

Dependencies

flutter, path_provider, share_plus

More

Packages that depend on share_screenshot_widget