widget_screenshot_plus 0.0.2 copy "widget_screenshot_plus: ^0.0.2" to clipboard
widget_screenshot_plus: ^0.0.2 copied to clipboard

retracted

A fork of widget_screenshot plugin. Flutter package for capturing widgets as high-quality images, including scrollable content. Perfect for sharing app content, creating previews, or saving widget sta [...]

example/lib/main.dart

import 'package:flutter/material.dart';

import 'example_list_extra.dart';
import 'example_single.dart';

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

/// Main application widget that demonstrates Widget Screenshot Plus functionality.
///
/// Provides navigation to different examples showing various screenshot capabilities.
class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Widget Screenshot Plus Demo',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: const HomePage(),
    );
  }
}

/// Homepage that lists available screenshot examples.
class HomePage extends StatelessWidget {
  const HomePage({super.key});

  /// Navigates to the specified example page
  void _navigateTo(BuildContext context, Widget page) {
    Navigator.of(context).push(MaterialPageRoute(builder: (_) => page));
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("Example Screenshots")),
      body: ListView(
        children: [
          ListTile(
            title: const Text("Single Widget Example"),
            onTap: () => _navigateTo(context, const ExampleSinglePage()),
          ),
          ListTile(
            title: const Text("ListView + Header/Footer Example"),
            onTap: () => _navigateTo(context, const ExampleListExtraPage()),
          ),
        ],
      ),
    );
  }
}
4
likes
0
points
228
downloads

Publisher

unverified uploader

Weekly Downloads

A fork of widget_screenshot plugin. Flutter package for capturing widgets as high-quality images, including scrollable content. Perfect for sharing app content, creating previews, or saving widget states. Supports PNG/JPEG formats, background customization, and handles complex layouts with ease.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on widget_screenshot_plus

Packages that implement widget_screenshot_plus