GithubHelp home page GithubHelp logo

im-kevin / fqreader Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 201 KB

flutter scan widget plugins

License: Apache License 2.0

Java 61.24% Objective-C 2.93% Dart 28.72% Ruby 1.95% Batchfile 0.19% Kotlin 3.14% Swift 1.19% Shell 0.63%

fqreader's Introduction

fqreader pub package

一个可以自定义的扫描控件,

Usage Add this to your package's pubspec.yaml file:

dependencies:
  fqreader: "^0.1.6"

Fqreader

decodeImg

解析图片

Param Type Default Description
[file] File 图片文件
[scanType] List ScanType.ALL 扫描的类型,默认全部类型

返回

ScanView

Param Type Default Description
[onScan] ScanEvent 扫描事件
[scanRect] Rect 扫描区域位置大小, scanRect和scanSize 只能用一个
[scanSize] Size 扫描区域大小, scanRect和scanSize 只能用一个
[viewSize] Size ScanView控件大小
[scanAilgn] Alignment 扫描框的位置(位于图片)
[viewAilgn] Alignment view的位置(位于图片)
[autoScan] bool true 是否立即扫描
[continuityScan] bool false 是否连续扫描
[scanInterval] Duration 0.5s 连续扫描间隔
[scanType] List ScanType.ALL 扫描的条码类型
[devicePixelRatio] double 屏幕分辨率

ScanViewState

startScan

开始扫描

stopScan

暂停扫描

turnOn

开灯

turnOff

关灯

ScanType

Enum Description
[ALL] 所有条形码
[QR_CODE] 普通二维码
[AZTEC] 二维码 主要用于航空。比如坐飞机行李箱上贴的便签
[CODABAR] 条形码
[CODE_39] CODE 39 条形码
[CODE_93] CODE 92 条形码
[CODE_128] CODE 128 条形码
[EAN8] 商品用条形码 EAN8
[EAN13] 商品用条形码 EAN13
[ITF] 全球贸易货号。主要用于运输方面的条形码
[DATA_MATRIX] 一种二维码
[PDF_417] PDF417条码是一种高密度、高信息含量的便携式数据文件

fqreader's People

Contributors

im-kevin avatar

Stargazers

Ken avatar Caijinglong avatar Yi Hao avatar  avatar

Watchers

James Cloos avatar  avatar

fqreader's Issues

初始化直接报错

[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(ScanView init, setParameters failed, null)

暂停扫码后,在打开扫码,报错。无法正常打开

I/flutter (13541): ==============================>>>>>>>>>>>>>>null E/flutter (13541): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The getter 'devicePixelRatio' was called on null. E/flutter (13541): Receiver: null E/flutter (13541): Tried calling: devicePixelRatio E/flutter (13541): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5) E/flutter (13541): #1 ScanViewState.startScan (package:fqreader/scan_view.dart:146:36)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.