Home

Awesome

screen_text_extractor

pub version

This plugin allows Flutter desktop apps to extract text from screen.


English | 简体中文


<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> <!-- END doctoc generated TOC please keep comment here to allow auto update -->

Platform Support

LinuxmacOSWindows
✔️✔️✔️

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?

API

ScreenTextExtractor

MethodDescriptionLinuxMacOSWindows
isAccessAllowedmacOS only✔️
requestAccessmacOS only✔️
extractFromClipboard✔️✔️✔️
extractFromScreenSelection✔️✔️✔️

License

MIT