live_document_scanner 0.0.1 copy "live_document_scanner: ^0.0.1" to clipboard
live_document_scanner: ^0.0.1 copied to clipboard

A Flutter plugin for scanning documents using camera.

Live Document Scanner #

License: MIT

Android iOS
Support SDK 21+ iOS 13.0+

Installation #

Add the following dependency to your pubspec.yaml file:

dependencies:
  live_document_scanner: ^0.0.1

or install it directly from the command line:

flutter pub add live_document_scanner

Setup #

Android #

Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.

minSdkVersion 21

iOS #

Add the following keys to your Info.plist file, located in <project root>/ios/Runner/Info.plist:

<key>NSCameraUsageDescription</key>
<string>Camera permission is required for document scanning.</string>

Usage #

Import the package

import 'package:live_document_scanner/live_document_scanner.dart';

Create a new instance of the LiveDocumentScanner

LiveDocumentScanner scanner = LiveDocumentScanner(
    options: DocumentScannerOptions(
        pageLimit: 1,
        type: DocumentScannerType.images,
        galleryImportAllowed: true));

Start the document scanning process

DocumentScannerResults results = await scanner.scanDocument();

Plugin History #

This plugin was originally a fork of flutter_doc_scanner, with the goal of extending its functionality and simplifying its usage. The main improvements include:

  • Added Typing:

    • Introduced options with clear typing, enhancing the development experience.
    • Added typed return values, ensuring more safety and predictability when handling results.
  • Code Simplification:

    • The codebase was optimized and reorganized, making it cleaner, easier to maintain, and more efficient.

These enhancements allow developers to integrate document scanning into their applications more seamlessly and effectively.

License #

This project is licensed under the MIT License.

8
likes
0
points
151
downloads

Publisher

verified publisherrprandt.com

Weekly Downloads

A Flutter plugin for scanning documents using camera.

Homepage

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on live_document_scanner