पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.2.3

screen_capturer

इस प्लगइन के बल पर Flutter डेस्कटॉप एप्लिकेशन स्क्रीनशॉट कैप्चर कर सकते हैं।

macOSWindowsLinux
30-दिन डाउनलोड
3.4 हज़ार
लाइक
83
Pub अंक
150

पैकेज इंस्टॉल करें

flutter pub add screen_capturer

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

screen_capturer पैकेज फ्लटर डेस्कटॉप एप्लिकेशन को macOS, Windows और Linux पर स्क्रीनशॉट लेने की अनुमति देता है। यह पूरी स्क्रीन या क्षेत्र-विशिष्ट स्क्रीनशॉट लेने के लिए एक सरल API प्रदान करता है, जो दृश्य दस्तावेज़ीकरण, डिबगिंग टूल्स या स्क्रीन शेयरिंग फीचर्स की आवश्यकता वाले एप्लिकेशन के लिए आदर्श है। प्लगइन सीधे ऑपरेटिंग सिस्टम की स्क्रीन कैप्चर क्षमता के साथ एकीकृत है, जिससे प्लेटफॉर्म के आधार पर विश्वसनीय प्रदर्शन सुनिश्चित होता है। यह डेस्कटॉप-पहले फ्लटर एप्लिकेशन बनाने वाले डेवलपर्स के लिए डिज़ाइन किया गया है जिन्हें स्क्रीन कंटेंट के साथ प्रोग्रामेटिक रूप से इंटरैक्ट करने की आवश्यकता होती है।

उपयोग

  • डेस्कटॉप एप्लिकेशन में स्क्रीनशॉट लेना
  • डिबगिंग और टेस्टिंग टूल्स
  • स्क्रीन रिकॉर्डिंग उपकरण
  • दृश्य दस्तावेज़
  • उपयोगकर्ता इंटरफेस वॉकथ्रू

मुख्य विशेषताएँ

  • क्रॉस-प्लेटफॉर्म समर्थन (macOS, Windows, Linux)
  • सरल स्क्रीनशॉट API
  • क्षेत्र-विशिष्ट अधिग्रहण
  • मूल ऑपरेटिंग सिस्टम एकीकरण
  • हल्का और तेज़

इनके लिए उपयुक्त

  • डेस्कटॉप ऐप विकासकर्ता
  • डिबगिंग टूल निर्माता
  • UI स्वचालित परीक्षण कर्मी
  • स्क्रीन साझाकरण एप्लिकेशन

विचार योग्य बातें

  • प्लेटफ़ॉर्म-विशिष्ट अनुमतियाँ आवश्यक हैं
  • डेस्कटॉप प्लेटफॉर्म तक सीमित
  • स्क्रीन एक्सेस के लिए उपयोगकर्ता सहमति की आवश्यकता हो सकती है
  • मोबाइल समर्थन नहीं है
  • मूल सिस्टम एपीआई पर निर्भर करता है

मूल 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

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।