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

outdated

This plugin allows Flutter desktop apps to capture screenshots.

screen_capturer #

pub version

This plugin allows Flutter desktop apps to take screenshots.


English | 简体中文


Platform Support #

Linux macOS Windows
✔️ ✔️ ✔️

⚠️ macOS only supports non-sandbox mode.

Quick Start #

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
  screen_capturer: ^0.1.1

Or

dependencies:
  screen_capturer:
    git:
      url: https://github.com/leanflutter/screen_capturer.git
      ref: main

Usage #

import 'package:screen_capturer/screen_capturer.dart';

CapturedData? capturedData = await screenCapturer.capture(
  mode: CaptureMode.region, // screen, window
  imagePath: '<path>',
);

Please see the example app of this plugin for a full example.

Platform Differences #

CaptureMode #

Name Description Linux macOS Windows
region Drag the cursor around an object to form a rectangle. ✔️ ✔️ ✔️
screen Capture the entire screen. ✔️ ✔️
window Select a window, that you want to capture. (linux capture only the current window) ✔️ ✔️

Who's using it? #

License #

MIT

68
likes
0
pub points
90%
popularity

Publisher

verified publisherleanflutter.dev

This plugin allows Flutter desktop apps to capture screenshots.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, flutter, win32

More

Packages that depend on screen_capturer