NEWSMRZ Scanner is now part of barKoder.What it means for you →

DOCUMENTATION

Installation Guide

MRZ Scanner 1.x (archive) / Flutter

Documentation / MRZ Scanner 1.x (archive) / Flutter

1.Adding our Flutter package 

To add the mrzscanner_flutter package to your project, you have two options. You can either use the mrzscanner_flutter package from pub.dev or from a local path. 

To use the package from pub.dev, add the package name and version to pubspec.yaml:

dependencies:
    flutter:
      sdk: flutter
   mrzscanner_flutter: <package version>


If you prefer to use a local package, download the package from https:/mrzscanner.com and set the package path in pubspec.yaml:

dependencies:
    flutter:
      sdk: flutter
   mrzscanner_flutter: <package version>
      path: <package local path>


2.Run flutter pub get command in terminal to install the specified dependencies in your project

3.In your main.dart import the plugin:

import 'package:mrzscanner_flutter/mrzscanner_flutter.dart';
 

iOS

The MRZScanner plugin requires camera usage so you need to specify the camera usage description in iOS poject's Info.plist:

    <key>NSCameraUsageDescription</key> 
    <string>Camera is requred for MRZ scanning</string>
 

Updated Oct 25, 2023 · Questions? Ask us