upgrade qr scanner version

hmxc
小赖 4 years ago
parent 3aa557df5c
commit e80b9d7242

@ -44,7 +44,7 @@ android {
defaultConfig { defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.akucommunity.aku_community_manager" applicationId "com.akucommunity.aku_community_manager"
minSdkVersion 24 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 29
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName

@ -48,9 +48,9 @@ class _ScanPageState extends State<ScanPage> {
onQRViewCreated: (controller) { onQRViewCreated: (controller) {
_qrViewController = controller; _qrViewController = controller;
controller.scannedDataStream.listen((event) { controller.scannedDataStream.listen((event) {
if (tempText != event) { if (tempText != event.code) {
tempText = event; tempText = event.code;
BotToast.showText(text: event); BotToast.showText(text: event.code);
} }
}); });
}, },

@ -337,7 +337,7 @@ packages:
name: qr_code_scanner name: qr_code_scanner
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "0.0.13" version: "0.3.4"
rational: rational:
dependency: transitive dependency: transitive
description: description:

@ -40,7 +40,7 @@ dependencies:
#划动组件 #划动组件
carousel_slider: ^2.3.1 carousel_slider: ^2.3.1
#qrcode san #qrcode san
qr_code_scanner: ^0.0.13 qr_code_scanner:
#toast #toast
bot_toast: ^3.0.4 bot_toast: ^3.0.4

Loading…
Cancel
Save