PackagesPackages
Desktop screenshots (screenshot_desktop)
Pure Dart screenshot capture library for Raven
screenshot_desktop is a pure Dart package for capturing monitor and window screenshots on
macOS and Windows. It is used by the Raven desktop app for OCR and screen automation flows.
Package profile
| Field | Value |
|---|---|
| Location | packages/flutter/screenshot_desktop/ |
| Type | Pure Dart package (FFI) |
| Version | 1.1.0 |
| Platforms | macOS, Windows |
| Primary consumer | apps/raven/ |
Responsibilities
- Enumerate available monitors and windows.
- Capture high-resolution screenshots for a specific monitor or window.
- Return raw image bytes for downstream OCR or processing.
Usage in this repo
- Referenced via a path dependency in
apps/raven/pubspec.yaml. - Can be used from Dart or Flutter code via
ScreenshotDesktop.instance.
Local development
- Update code under
packages/flutter/screenshot_desktop/. - Run
flutter pub getinapps/raven/after changing the package. - Run
dart testfrom the package to validate changes.
Notes
- This package does not depend on Flutter and can run in pure Dart contexts.
Last updated on