FLUTTER ECOSYSTEM

eliasteeny/flutter_document_scanner

React Native에서 Flutter로 이식된 문서 스캐너 플러그인

flutter_document_scanner 프로젝트 이미지
Stars
41
Forks
27
최근 푸시(UTC)
2023. 6. 29.
프로젝트 상태
활성
eliasteeny GitHub avatar
GITHUB User

eliasteeny ↗

언어JavaObjective-CDartRuby

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

document_scanner

A platform view plugin for Flutter apps that adds document scanning functionality on Android/IOS.

Warning

Document Scanner customization options aren't working for now

Setup

Handle camera access permission

IOS

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>
Android

minSdkVersion should be at least 19

How to use ?

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();
    },
                          
)

Credits

This is a React Native package implemented on Flutter.

Reference to the React Native package : https://github.com/Michaelvilleneuve/react-native-document-scanner

Contributing

Step 1
  • Fork this project's repo : https://github.com/eliasteeny/flutter_document_scanner
Step 2
  • Create a new pull request.

License

This project is licensed under the MIT License - see the LICENSE.md file for details