document_scanner
एक प्लगइन जो एक मूल विशेषता दृश्य बनाता है, जो डॉक्यूमेंट को स्कैन करता है, एक फ्लटर विजेट के रूप में।
React Native से Flutter में पोर्ट किया गया डॉक्यूमेंट स्कैनर प्लगइन
{"sdk":"flutter"}^2.0.2{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A platform view plugin for Flutter apps that adds document scanning functionality on Android/IOS.
Document Scanner customization options aren't working for now
Handle camera access permission
Add a boolean property to the app's Info.plist file with the key io.flutter.embedded_views_preview and the value true to enable embedded views preview.
<key>io.flutter.embedded_views_preview</key>
<true/>
Add a String property to the app's Info.plist file with the key NSCameraUsageDescription and the value as the description for why your app needs camera access.
<key>NSCameraUsageDescription</key>
<string>Camera Permission Description</string>
minSdkVersion should be at least 19
first add as a dependency in pubspec.yaml
import:
import 'package:document_scanner/document_scanner.dart';
then use it as a widget:
File scannedDocument;
DocumentScanner(
onDocumentScanned: (ScannedImage scannedImage) {
print("document : " + scannedImage.croppedImage);
scannedDocument = scannedImage.getScannedDocumentAsFile();
},
)
This is a React Native package implemented on Flutter.
Reference to the React Native package : https://github.com/Michaelvilleneuve/react-native-document-scanner
This project is licensed under the MIT License - see the LICENSE.md file for details