{"id":13548035,"url":"https://github.com/leanflutter/screen_capturer","last_synced_at":"2025-03-17T15:12:48.270Z","repository":{"id":47228451,"uuid":"430240218","full_name":"leanflutter/screen_capturer","owner":"leanflutter","description":"This plugin allows Flutter desktop apps to capture screenshots.","archived":false,"fork":false,"pushed_at":"2024-08-29T13:30:03.000Z","size":482,"stargazers_count":91,"open_issues_count":14,"forks_count":36,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-02T14:17:27.991Z","etag":null,"topics":["screenshot"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leanflutter.png","metadata":{"files":{"readme":"README-ZH.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"liberapay":"lijy91"}},"created_at":"2021-11-21T00:32:56.000Z","updated_at":"2025-02-28T22:36:35.000Z","dependencies_parsed_at":"2024-03-04T16:13:50.588Z","dependency_job_id":"ae6971aa-1991-4edc-bcc8-dc83a411ffb5","html_url":"https://github.com/leanflutter/screen_capturer","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":0.05555555555555558,"last_synced_commit":"76c515de660c8aedb2b53816eebdeba40385c419"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanflutter%2Fscreen_capturer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanflutter%2Fscreen_capturer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanflutter%2Fscreen_capturer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanflutter%2Fscreen_capturer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leanflutter","download_url":"https://codeload.github.com/leanflutter/screen_capturer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056425,"owners_count":20390719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["screenshot"],"created_at":"2024-08-01T12:01:04.845Z","updated_at":"2025-03-17T15:12:48.228Z","avatar_url":"https://github.com/leanflutter.png","language":"C++","readme":"# screen_capturer\n\n[![pub version][pub-image]][pub-url] [![][discord-image]][discord-url] [![All Contributors][all-contributors-image]](#contributors)\n\n[pub-image]: https://img.shields.io/pub/v/screen_capturer.svg\n[pub-url]: https://pub.dev/packages/screen_capturer\n[discord-image]: https://img.shields.io/discord/884679008049037342.svg\n[discord-url]: https://discord.gg/zPa6EZ2jqb\n\n[all-contributors-image]: https://img.shields.io/github/all-contributors/leanflutter/screen_capturer?color=ee8449\n\n这个插件允许 Flutter 桌面应用程序进行屏幕截图。\n\n---\n\n[English](./README.md) | 简体中文\n\n---\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [screen_capturer](#screen_capturer)\n  - [平台支持](#平台支持)\n  - [快速开始](#快速开始)\n    - [安装](#安装)\n      - [Windows requirements](#windows-requirements)\n    - [用法](#用法)\n    - [macOS](#macos)\n  - [平台差异](#平台差异)\n    - [CaptureMode](#capturemode)\n  - [谁在用使用它？](#谁在用使用它)\n  - [许可证](#许可证)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## 平台支持\n\n| Linux | macOS | Windows |\n| :---: | :---: | :-----: |\n|  ✔️   |  ✔️   |   ✔️    |\n\n## 快速开始\n\n### 安装\n\n将此添加到你的软件包的 pubspec.yaml 文件：\n\n```yaml\ndependencies:\n  screen_capturer: ^0.2.3\n```\n\n或\n\n```yaml\ndependencies:\n  screen_capturer:\n    git:\n      path: packages/screen_capturer\n      url: https://github.com/leanflutter/screen_capturer.git\n      ref: main\n```\n\n#### Windows requirements\n\n请务必修改你的 Visual Studio 安装，并确保 **\"C++ ATL for latest v142 build tools (x86 \u0026 x64)\"** 已安装\n\n### 用法\n\n### macOS\n\n更改文件 `macos/Runner/DebugProfile.entitlements` 或 `macos/Runner/Release.entitlements` 如下：\n\n\u003e 仅在沙盒模式下需要。\n\n```diff\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n\u003cdict\u003e\n\t\u003ckey\u003ecom.apple.security.app-sandbox\u003c/key\u003e\n\t\u003ctrue/\u003e\n+\t\u003ckey\u003ecom.apple.security.temporary-exception.mach-register.global-name\u003c/key\u003e\n+\t\u003cstring\u003ecom.apple.screencapture.interactive\u003c/string\u003e\n\u003c/dict\u003e\n\u003c/plist\u003e\n```\n\n```dart\nimport 'package:screen_capturer/screen_capturer.dart';\n\nCapturedData? capturedData = await screenCapturer.capture(\n  mode: CaptureMode.region, // screen, window\n  imagePath: '\u003cpath\u003e',\n  copyToClipboard: true,\n);\n```\n\n\u003e 请看这个插件的示例应用，以了解完整的例子。\n\n## 平台差异\n\n### CaptureMode\n\n| Name     | Description                                | Linux | macOS | Windows |\n| -------- | ------------------------------------------ | ----- | ----- | ------- |\n| `region` | 在对象周围拖动光标以形成一个矩形。         | ✔️    | ✔️    | ✔️      |\n| `screen` | 捕获整个屏幕。                             | ✔️    | ✔️    | ✔️      |\n| `window` | 选择要捕获的窗口。（linux 只捕获当前窗口） | ➖    | ✔️    | ✔️      |\n\n## 谁在用使用它？\n\n- [Biyi (比译)](https://biyidev.com/) - 一个便捷的翻译和词典应用程序。\n\n## 贡献者\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/lijy91\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/3889523?v=4?s=100\" width=\"100px;\" alt=\"LiJianying\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eLiJianying\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/leanflutter/screen_capturer/commits?author=lijy91\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/amit548\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/36206377?v=4?s=100\" width=\"100px;\" alt=\"Amit Mondal\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAmit Mondal\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/leanflutter/screen_capturer/commits?author=amit548\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/lightrabbit\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1521765?v=4?s=100\" width=\"100px;\" alt=\"lightrabbit\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003elightrabbit\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/leanflutter/screen_capturer/commits?author=lightrabbit\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://liuyu.xin/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/79075347?v=4?s=100\" width=\"100px;\" alt=\"liuyuxin\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eliuyuxin\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/leanflutter/screen_capturer/commits?author=gvenusleo\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://boring.cool/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/16132584?v=4?s=100\" width=\"100px;\" alt=\"kalykun\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ekalykun\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/leanflutter/screen_capturer/commits?author=kungege\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n  \u003ctfoot\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" size=\"13px\" colspan=\"7\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg\"\u003e\n          \u003ca href=\"https://all-contributors.js.org/docs/en/bot/usage\"\u003eAdd your contributions\u003c/a\u003e\n        \u003c/img\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tfoot\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\n## 许可证\n\n[MIT](./LICENSE)\n","funding_links":["https://liberapay.com/lijy91"],"categories":["C++","Packages"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanflutter%2Fscreen_capturer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleanflutter%2Fscreen_capturer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanflutter%2Fscreen_capturer/lists"}