screen_capturer 0.2.2 copy "screen_capturer: ^0.2.2" to clipboard
screen_capturer: ^0.2.2 copied to clipboard

This plugin allows Flutter desktop apps to capture screenshots.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:screen_capturer_example/pages/home.dart';
import 'package:screen_capturer_example/utils/default_shell_executor.dart';
import 'package:shell_executor/shell_executor.dart';

void main() {
  ShellExecutor.global = DefaultShellExecutor();
  runApp(const MyApp());
}

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

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

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: HomePage(),
    );
  }
}