All Projects → flutter-package → flutter_scan

flutter-package / flutter_scan

Licence: MIT license
scanner qrcode in widget tree & decoder qrcode from image

Programming Languages

java
68154 projects - #9 most used programming language
swift
15916 projects
dart
5743 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to flutter scan

Barcodescanner.xf
Barcode Scanner using GoogleVision API for Xamarin Form
Stars: ✭ 82 (+30.16%)
Mutual labels:  camera, qrcode, qrcode-scanner
qrcode
A flutter plugin for scanning QR codes. Use AVCaptureSession in iOS and zxing in Android.
Stars: ✭ 69 (+9.52%)
Mutual labels:  qrcode, qrcode-scanner, flutter-plugin
qrcode-decoder
🤘Tool for decoding qrcode by image,video or camera.
Stars: ✭ 78 (+23.81%)
Mutual labels:  camera, qrcode, qrcode-decoder
React Native Qrcode Scanner
A QR code scanner component for React Native.
Stars: ✭ 1,796 (+2750.79%)
Mutual labels:  camera, qrcode, qrcode-scanner
Cordova Plugin Qrscanner
A fast, energy efficient, highly-configurable QR code scanner for Cordova apps and the browser.
Stars: ✭ 485 (+669.84%)
Mutual labels:  camera, qrcode, qrcode-scanner
Camera awesome
A flutter plugin to handle Android / iOS camera
Stars: ✭ 186 (+195.24%)
Mutual labels:  camera, flutter-plugin
Instascan
HTML5 QR code scanner using your webcam
Stars: ✭ 2,657 (+4117.46%)
Mutual labels:  camera, qrcode
flutter-scankit
Flutter QR code scanning
Stars: ✭ 107 (+69.84%)
Mutual labels:  qrcode, flutter-plugin
android-zbar-sdk
🔗 android-zbar-sdk, provide jni source, so file and jar file used alone, gradle/maven remote dependencies.
Stars: ✭ 311 (+393.65%)
Mutual labels:  qrcode, qrcode-scanner
barcode-detector
Spec compliant polyfill of the Barcode Detection API 🤳
Stars: ✭ 31 (-50.79%)
Mutual labels:  qrcode, qrcode-scanner
BGAQRCode-Android
QRCode 扫描二维码、扫描条形码、相册获取图片后识别、生成带 Logo 二维码、支持微博微信 QQ 二维码扫描样式
Stars: ✭ 7,714 (+12144.44%)
Mutual labels:  qrcode, qrcode-scanner
Nbzxing
🔥 2020年最好用的开源扫码,全方位优化,强烈推荐!! 支持多种常规zxing无法扫出的码,用就完了!! 🔥
Stars: ✭ 184 (+192.06%)
Mutual labels:  camera, qrcode
Unitybarcodescanner
Simple Unity Barcode Scanner
Stars: ✭ 180 (+185.71%)
Mutual labels:  camera, qrcode
Secure-QR-Reader
Privacy Focused and Secure QR Reader
Stars: ✭ 32 (-49.21%)
Mutual labels:  qrcode, qrcode-scanner
barcode-server
Barcode Server for Barcode Client-Server android application
Stars: ✭ 40 (-36.51%)
Mutual labels:  qrcode, qrcode-scanner
flutter qr code scanner generator sharing
Flutter App For Scanning, Generating, Sharing QR Code
Stars: ✭ 137 (+117.46%)
Mutual labels:  qrcode, qrcode-scanner
QRCode-Decoder
An iOS QRCode Scanner and Decoder
Stars: ✭ 17 (-73.02%)
Mutual labels:  qrcode, qrcode-decoder
qrrs
CLI QR code generator and reader written in rust
Stars: ✭ 29 (-53.97%)
Mutual labels:  qrcode, qrcode-scanner
Media picker
A Flutter Plugin for Selecting and Taking New Photos and Videos.
Stars: ✭ 24 (-61.9%)
Mutual labels:  camera, flutter-plugin
Qr Code Scanner
Full stable QR code scanner android app.
Stars: ✭ 28 (-55.56%)
Mutual labels:  camera, qrcode

scan

scan

scan qrcode & barcode in widget tree.

decode qrcode & barcode image from path.

if you want to generate qrcode image, you should use qr_flutter

Features

  • use ScanView in widget tree to show scan view.
  • custom identifiable area.
  • decode qrcode from image path by Scan.parse.

prepare

ios

info.list

<key>NSCameraUsageDescription</key>
<string>Your Description</string>

<key>io.flutter.embedded_views_preview</key>
<string>YES</string>
android
<uses-permission android:name="android.permission.CAMERA" />

<application>
  <meta-data
    android:name="flutterEmbedding"
    android:value="2" />
</application>
scan: ^newest
import 'package:scan/scan.dart';

Usage

  • show scan view in widget tree
ScanController controller = ScanController();
String qrcode = 'Unknown';

Container(
  width: 250, // custom wrap size
  height: 250,
  child: ScanView(
    controller: controller,
// custom scan area, if set to 1.0, will scan full area
    scanAreaScale: .7,
    scanLineColor: Colors.green.shade400,
    onCapture: (data) {
      // do something
    },
  ),
),
  • you can use controller.resume() and controller.pause() resume/pause camera
controller.resume();
controller.pause();
  • get qrcode string from image path
String result = await Scan.parse(imagePath);
  • toggle flash light
controller.toggleTorchMode();

proguard-rules

-ignorewarnings
-keepattributes *Annotation*
-keepattributes Exceptions
-keepattributes InnerClasses
-keepattributes Signature
-keepattributes SourceFile,LineNumberTable
-keep class com.huawei.hianalytics.**{*;}
-keep class com.huawei.updatesdk.**{*;}
-keep class com.huawei.hms.**{*;}

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].