Tank / compontent_qrscan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

### 1. Depend on it Add this to your package's pubspec.yaml file: ``` import 'package:qrscan/qrscan.dart'; ``` ### iOS Add the the camera usage description to your Info.plist ```xml NSCameraUsageDescription Camera permission is required for qrcode scanning. ``` ### Android For Android, you must do the following before you can use the plugin: Add the QrCodeScannerActivity to your AndroidManifest.xml `` ## Example ```dart String qrResult = await qrscan.startScan( title: "掃二維碼", desc: '請把二維碼對準掃描區域掃碼', barColor: Colors.red, titleColor: Colors.green, qRCornerColor: Colors.blue, qRScannerColor: Colors.deepPurple, flashlightEnable: true, scanAreaScale: 0.7 /// value 0.0 to 1.0 ); ``` ### Parameters **title** : Navigation bar title. **barColor** : Navigation bar color. **titleColor** : Navigation bar title color (include back icon). **qRCornerColor** : Square color. **qRScannerColor** : Scanner line color. **flashlightEnable** : Flashlight button enable flag. **scanAreaScale** : Center scan area size scale.# compontent_qrscan

About

License:MIT License


Languages

Language:Swift 57.1%Language:Kotlin 33.6%Language:Java 4.2%Language:Dart 3.1%Language:Ruby 0.9%Language:Shell 0.8%Language:Objective-C 0.4%