screen_capturer
इस प्लगइन के बल पर Flutter डेस्कटॉप एप्लिकेशन स्क्रीनशॉट कैप्चर कर सकते हैं।
इस प्लगइन के बल पर Flutter डेस्कटॉप एप्लिकेशन स्क्रीनशॉट कैप्चर कर सकते हैं।
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
🚀 Ship Your App Faster: Try Fastforge - The simplest way to build, package and distribute your Flutter apps.
This plugin allows Flutter desktop apps to take screenshots.
English | 简体中文
| Linux | macOS | Windows |
|---|---|---|
| ✔️ | ✔️ | ✔️ |
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
Be sure to modify your Visual Studio installation and ensure that "C++ ATL for latest v142 build tools (x86 & x64)" is installed!
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.
| 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) | ➖ | ✔️ | ✔️ |
LiJianying 💻 |
Amit Mondal 💻 |
lightrabbit 💻 |
liuyuxin 💻 |
kalykun 📖 |
||
|
|
||||||
निर्भरता सूची 1 आइटम
^6.1.0उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗