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

outdated

A Flutter Plugin to Share Widget as Screenshot.

example/lib/main.dart

import 'package:flutter/material.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: 'Checking Network connection',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Checking Network connection'),
    );
  }
}

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

  final String title;

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

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            // screenshotController(
            //   child: const Text(
            //     'Checking Network connection status, on call.',
            //   ),
            // ),
          ],
        ),
      ),
      // floatingActionButton: FloatingActionButton(
      //   onPressed: checkConnection,
      //   child: const Icon(Icons.add),
      // ),
    );
  }
}
19
likes
0
points
59
downloads

Publisher

verified publisherflutteriraqi.com

Weekly Downloads

A Flutter Plugin to Share Widget as Screenshot.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, path_provider, share_plus

More

Packages that depend on share_screenshot_widget