diff --git a/android/app/build.gradle b/android/app/build.gradle index f273b4d..4643b6f 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -44,7 +44,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.akucommunity.aku_community_manager" - minSdkVersion 24 + minSdkVersion 21 targetSdkVersion 29 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/lib/ui/tool_pages/scan_page.dart b/lib/ui/tool_pages/scan_page.dart index ac7ebaf..934c3b1 100644 --- a/lib/ui/tool_pages/scan_page.dart +++ b/lib/ui/tool_pages/scan_page.dart @@ -48,9 +48,9 @@ class _ScanPageState extends State { onQRViewCreated: (controller) { _qrViewController = controller; controller.scannedDataStream.listen((event) { - if (tempText != event) { - tempText = event; - BotToast.showText(text: event); + if (tempText != event.code) { + tempText = event.code; + BotToast.showText(text: event.code); } }); }, diff --git a/pubspec.lock b/pubspec.lock index b68d509..8d2f70a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -337,7 +337,7 @@ packages: name: qr_code_scanner url: "https://pub.flutter-io.cn" source: hosted - version: "0.0.13" + version: "0.3.4" rational: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 74bea3f..ca5e8d5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -40,7 +40,7 @@ dependencies: #划动组件 carousel_slider: ^2.3.1 #qrcode san - qr_code_scanner: ^0.0.13 + qr_code_scanner: #toast bot_toast: ^3.0.4