パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.2.3

screen_capturer

このプラグインにより、Flutter デスクトップアプリがスクリーンショットをキャプチャできます。

macOSWindowsLinux
30日間ダウンロード
3400
いいね数
83
Pub ポイント
150

パッケージをインストール

flutter pub add screen_capturer

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

screen_capturer パッケージは、Flutter デスクトップアプリケーションが macOS、Windows、Linux でスクリーンショットをキャプチャできるようにします。フルスクリーンまたは特定領域のスクリーンショットを取得するためのシンプルな API を提供しており、視覚的なドキュメンテーション、デバッグツール、または画面共有機能が必要なアプリに最適です。このプラグインは、オペレーティングシステムのスクリーンキャプチャ機能と直接統合されており、あらゆるプラットフォームで信頼性の高いパフォーマンスを実現します。プログラム的に画面コンテンツとやり取りする必要があるデスクトップ中心の Flutter アプリを開発する開発者向けに設計されています。

用途

  • デスクトップアプリケーションでスクリーンショットを撮る
  • デバッグおよびテストツール
  • スクリーンレコーディングユーティリティ
  • ビジュアルドキュメンテーション
  • ユーザーインターフェースのウォークスルー

主な機能

  • クロスプラットフォーム対応(macOS、Windows、Linux)
  • シンプルなスクリーンショット API
  • 地域固有のキャプチャ
  • ネイティブOS統合
  • 軽量で高速

適している対象

  • デスクトップアプリ開発者
  • デバッグツール作成者
  • UI自動化テスト担当者
  • 画面共有アプリケーション

注意事項

  • プラットフォーム固有の権限が必要です
  • デスクトッププラットフォームに限定
  • 画面アクセスにはユーザーの承認が必要になる場合があります
  • モバイル対応なし
  • ネイティブシステムAPIに依存しています

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

🚀 Ship Your App Faster: Try Fastforge - The simplest way to build, package and distribute your Flutter apps.

screen_capturer

pub version All Contributors

This plugin allows Flutter desktop apps to take screenshots.


English | 简体中文


Platform Support

Linux macOS Windows
✔️ ✔️ ✔️

Quick Start

Installation

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

dependencies:
  screen_capturer: ^0.2.3

Or

dependencies:
  screen_capturer:
    git:
      path: packages/screen_capturer
      url: https://github.com/leanflutter/screen_capturer.git
      ref: main
Windows requirements

Be sure to modify your Visual Studio installation and ensure that "C++ ATL for latest v142 build tools (x86 & x64)" is installed!

Usage
macOS

Change the file macos/Runner/DebugProfile.entitlements or macos/Runner/Release.entitlements as follows:

Required only for sandbox mode.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>com.apple.security.app-sandbox</key>
	<true/>
+	<key>com.apple.security.temporary-exception.mach-register.global-name</key>
+	<string>com.apple.screencapture.interactive</string>
</dict>
</plist>
import 'package:screen_capturer/screen_capturer.dart';

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

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?

Contributors

LiJianying
LiJianying

💻
Amit Mondal
Amit Mondal

💻
lightrabbit
lightrabbit

💻
liuyuxin
liuyuxin

💻
kalykun
kalykun

📖
Add your contributions

License

MIT

カテゴリー

依存関係

依存関係一覧 4 件

  • screen_capturer_linux^0.2.3
  • screen_capturer_macos^0.2.2
  • screen_capturer_platform_interface^0.2.2
  • screen_capturer_windows^0.2.2

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。