移除二维码,修改应用名称

hmxc
张萌 4 years ago
parent 26c1b158e9
commit ab20e0182b

@ -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 20
targetSdkVersion 29 targetSdkVersion 29
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName

@ -4,7 +4,7 @@
In most cases you can leave this as-is, but you if you want to provide In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. --> FlutterApplication and put your custom class here. -->
<application android:name="io.flutter.app.FlutterApplication" android:label="小蜜蜂智慧社区管家端" android:icon="@mipmap/ic_launcher"> <application android:name="io.flutter.app.FlutterApplication" android:label="小蜜蜂智慧社区" android:icon="@mipmap/ic_launcher">
<meta-data android:name="com.amap.api.v2.apikey" android:value="872b909f2ebc8150b809d692c4349f22"/> <meta-data android:name="com.amap.api.v2.apikey" android:value="872b909f2ebc8150b809d692c4349f22"/>
<activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> <activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as <!-- Specifies an Android theme to apply to this Activity as soon as

@ -4,7 +4,7 @@ import 'package:aku_community_manager/tools/screen_tool.dart';
import 'package:aku_community_manager/ui/widgets/common/aku_back_button.dart'; import 'package:aku_community_manager/ui/widgets/common/aku_back_button.dart';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:qr_code_scanner/qr_code_scanner.dart'; // import 'package:qr_code_scanner/qr_code_scanner.dart';
class ScanPage extends StatefulWidget { class ScanPage extends StatefulWidget {
ScanPage({Key key}) : super(key: key); ScanPage({Key key}) : super(key: key);
@ -15,7 +15,7 @@ class ScanPage extends StatefulWidget {
class _ScanPageState extends State<ScanPage> { class _ScanPageState extends State<ScanPage> {
GlobalKey qrKey = GlobalKey(debugLabel: 'QR'); GlobalKey qrKey = GlobalKey(debugLabel: 'QR');
QRViewController _qrViewController; // QRViewController _qrViewController;
String tempText; String tempText;
Timer _timer; Timer _timer;
bool _barMove = false; bool _barMove = false;
@ -33,7 +33,7 @@ class _ScanPageState extends State<ScanPage> {
@override @override
void dispose() { void dispose() {
_qrViewController?.dispose(); // _qrViewController?.dispose();
_timer?.cancel(); _timer?.cancel();
super.dispose(); super.dispose();
} }
@ -43,18 +43,18 @@ class _ScanPageState extends State<ScanPage> {
return Scaffold( return Scaffold(
body: Stack( body: Stack(
children: [ children: [
QRView( // QRView(
key: qrKey, // key: qrKey,
onQRViewCreated: (controller) { // onQRViewCreated: (controller) {
_qrViewController = controller; // _qrViewController = controller;
controller.scannedDataStream.listen((event) { // controller.scannedDataStream.listen((event) {
if (tempText != event) { // if (tempText != event) {
tempText = event; // tempText = event;
BotToast.showText(text: event); // BotToast.showText(text: event);
} // }
}); // });
}, // },
), // ),
Center( Center(
child: Stack( child: Stack(
children: [ children: [

@ -331,13 +331,6 @@ packages:
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "4.3.2+2" version: "4.3.2+2"
qr_code_scanner:
dependency: "direct main"
description:
name: qr_code_scanner
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.0.13"
rational: rational:
dependency: transitive dependency: transitive
description: description:

@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.2+3 version: 1.0.3+4
environment: environment:
sdk: ">=2.7.0 <3.0.0" sdk: ">=2.7.0 <3.0.0"
@ -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: ^0.0.13
#toast #toast
bot_toast: ^3.0.4 bot_toast: ^3.0.4

Loading…
Cancel
Save