패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.2.3

screen_capturer

이 플러그인을 사용하면 Flutter 데스크톱 앱에서 스크린샷을 캡처할 수 있습니다.

macOSWindowsLinux
30일 다운로드
3.4천
좋아요
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

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.