flutter_twain_scanner 0.1.0 flutter_twain_scanner: ^0.1.0 copied to clipboard
A Flutter plugin for Windows desktop to scan documents from TWAIN compatible scanners.
flutter_twain_scanner #
A Flutter plugin for Windows desktop to scan documents from TWAIN compatible scanners. The C/C++ code is ported from https://github.com/twain/twain-samples.
Usage #
Future<List<String>?> getDataSources()
: Get the list of TWAIN compatible scanners.List<String>? scanners = await _flutterTwainScannerPlugin.getDataSources();
Future<String?> scanDocument(int sourceIndex)
: Scan documents from a selected scanner.int index = _scanners.indexOf(_selectedScanner!); String? documentPath = await _flutterTwainScannerPlugin.scanDocument(index);