Scanflow for flutter

scanflow_datacapture_text

Getting Started

A Flutter plugin provides a scanner widget

Support Android SDK 21+

Installation

To use this plugin add scanflow_datacapture_text as dependency in your pub spec.yaml file.

Import in your project

import 'package:scanflow_datacapture_text/text_capture.dart';

Android Configuration

  • Set the minSdkVersion and targetSdkVersion in android/app/build.gradle:
  • This means that app will only be available for users that run Android SDK 21 or higher.
defaultConfig {
   ....
    minSdkVersion 21
    targetSdkVersion 30
}
  • Ensure that FlutterEmbedding v2 have in manifest android/app/src/main/AndroidManifest.xml:
<meta-data
    android:name="flutterEmbedding"
    android:value="2" />

iOS Configuration

Info.Plist

To acquire data on the current condition of the library, your application needs an Internet connection and Camera Permission for Scanflow AI Scanner. So confirm you have given app privacy camera usage description in your info.plist

Key : Privacy - Camera Usage Description
Value : $(PRODUCT_NAME) camera use
Key : Privacy - Location Always and When In Use Usage Description
Value : $(PRODUCT_NAME) location access

Usage

 TextScanResultCallbackHandler callbackHandler =
               TextScanResultCallbackHandler();
   // Register this widget as the callback
    callbackHandler.registerCallback(this);
TextCapture(
licenseKey: <licenseKey>,
scanType: <textScanType>,
isBeepSound: <isBeepSound>,
isVibrate: <isVibrate>,
flashLight: <flashLightValue>,
isAutoExposure: <autoExposure>, isAutoZoom: <autoZoom>,
isOneTouchZoom:<oneTouchZoomButtonVisiblity>,resolution: <cameraResolution>
textScanResultBackHandler: callbackHandler)

####Generate License key :

  1. You need a license key to utilize the Scanflow SDK in your application.

  2. You must determine the applicationId of your Android app and bundleId for iOS app to generate a license key for your application.

  3. An applicationId/bundleId is used to generate each license. If your applicationId/bundleId changes, a new license key must be generated. Please be aware that you cannot use your license key with other programmers.

Purchase a License Key

  1. Create a free test account at https://console.scanflow.ai/ if you do not already have one if you want to use Scanflow.

  2. Visit https://console.scanflow.ai/login to access your account.

  3. Click "Create native SDK licensing key" and input the bundle ID for your project if you don't yet have a license key for your app.

  4. The license key should be copied.

Learn more with the official documentation