screentextextractor
March 23, 2025 ยท View on GitHub
๐ Ship Your App Faster: Try Fastforge - The simplest way to build, package and distribute your Flutter apps.
screen_text_extractor
This plugin allows Flutter desktop apps to extract text from screen.
English | ็ฎไฝไธญๆ
Platform Support
| Linux | macOS | Windows |
|---|---|---|
| โ๏ธ | โ๏ธ | โ๏ธ |
Quick Start
Installation
Add this to your package's pubspec.yaml file:
dependencies:
screen_text_extractor: ^0.1.3
Or
dependencies:
screen_text_extractor:
git:
url: https://github.com/leanflutter/screen_text_extractor.git
ref: main
Usage
import 'package:screen_text_extractor/screen_text_extractor.dart';
ExtractedData data;
data = await ScreenTextExtractor.instance.extractFromClipboard();
data = await ScreenTextExtractor.instance.extractFromScreenSelection();
Please see the example app of this plugin for a full example.
Who's using it?
- Biyi (ๆฏ่ฏ) - A convenient translation and dictionary app.
API
ScreenTextExtractor
| Method | Description | Linux | MacOS | Windows |
|---|---|---|---|---|
| isAccessAllowed | macOS only | โ | โ๏ธ | โ |
| requestAccess | macOS only | โ | โ๏ธ | โ |
| extractFromClipboard | โ๏ธ | โ๏ธ | โ๏ธ | |
| extractFromScreenSelection | โ๏ธ | โ๏ธ | โ๏ธ |