v1.6.0
scan
कस्टम विकल्प के साथ विजेट ट्री में QR कोड और बारकोड स्कैन करें। पथ से एकदम सही QR कोड और बारकोड छवि डीकोड करें।
178लाइक 1.6 हज़ार30-दिन डाउनलोड130Pub अंक
AndroidiOS
विजेट वृक्ष में कोड स्कैन करें और छवि से कोड डीकोड करें
{"sdk":"flutter"}{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
scan qrcode & barcode in widget tree.
decode qrcode & barcode image from path.
if you want to generate qrcode image, you should use qr_flutter
ScanView in widget tree to show scan view.Scan.parse.info.list
<key>NSCameraUsageDescription</key>
<string>Your Description</string>
<key>io.flutter.embedded_views_preview</key>
<string>YES</string>
<uses-permission android:name="android.permission.CAMERA" />
<application>
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
scan: ^newest
import 'package:scan/scan.dart';
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
},
),
),
controller.resume() and controller.pause() resume/pause cameracontroller.resume();
controller.pause();
String result = await Scan.parse(imagePath);
controller.toggleTorchMode();
-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.**{*;}
MIT License