This plugin allows Flutter desktop apps to extract text from screen.
English | 简体中文
Linux | macOS | Windows |
---|---|---|
✔️ | ✔️ | ✔️ |
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
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.
- Biyi (比译) - A convenient translation and dictionary app.
Method | Description | Linux | MacOS | Windows |
---|---|---|---|---|
isAccessAllowed | macOS only |
➖ | ✔️ | ➖ |
requestAccess | macOS only |
➖ | ✔️ | ➖ |
extractFromClipboard | ✔️ | ✔️ | ✔️ | |
extractFromScreenSelection | ✔️ | ✔️ | ✔️ |