remove qrcode scan

hmxc
小赖 4 years ago
parent 4e8bde934b
commit cb62ce67df

@ -4,8 +4,6 @@ import 'package:flutter/material.dart';
// Package imports: // Package imports:
import 'package:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
import 'package:get/get.dart';
import 'package:rflutter_alert/rflutter_alert.dart';
// Project imports: // Project imports:
import 'package:akuCommunity/base/assets_image.dart'; import 'package:akuCommunity/base/assets_image.dart';
@ -17,11 +15,6 @@ class PayOrderPage extends StatelessWidget {
final Bundle bundle; final Bundle bundle;
PayOrderPage({Key key, this.bundle}) : super(key: key); PayOrderPage({Key key, this.bundle}) : super(key: key);
final alertStyle = AlertStyle(
isCloseButton: false,
isOverlayTapDismiss: false,
titleStyle: TextStyle(fontSize: 38.sp, color: Color(0xff333333)),
);
final List<Map<String, dynamic>> _listPay = [ final List<Map<String, dynamic>> _listPay = [
{ {
@ -58,42 +51,42 @@ class PayOrderPage extends StatelessWidget {
InkWell _payMode(BuildContext context, Widget widget, String title) { InkWell _payMode(BuildContext context, Widget widget, String title) {
return InkWell( return InkWell(
onTap: () { onTap: () {
Alert( // Alert(
context: context, // context: context,
title: "支付成功!~", // title: "支付成功!~",
image: Container( // image: Container(
margin: EdgeInsets.only(top: 40.w), // margin: EdgeInsets.only(top: 40.w),
height: 200.w, // height: 200.w,
width: 200.w, // width: 200.w,
alignment: Alignment.center, // alignment: Alignment.center,
decoration: BoxDecoration( // decoration: BoxDecoration(
gradient: LinearGradient( // gradient: LinearGradient(
begin: Alignment.topCenter, // begin: Alignment.topCenter,
end: Alignment.bottomCenter, // end: Alignment.bottomCenter,
colors: [Color(0xffffe16b), Color(0xffffc40d)], // colors: [Color(0xffffe16b), Color(0xffffc40d)],
), // ),
borderRadius: BorderRadius.all(Radius.circular(200.w)), // borderRadius: BorderRadius.all(Radius.circular(200.w)),
), // ),
child: Icon( // child: Icon(
Icons.check, // Icons.check,
color: Colors.white, // color: Colors.white,
size: 150.w, // size: 150.w,
), // ),
), // ),
style: alertStyle, // style: alertStyle,
alertAnimation: fadeAlertAnimation, // alertAnimation: fadeAlertAnimation,
buttons: [ // buttons: [
DialogButton( // DialogButton(
child: Text( // child: Text(
"确认", // "确认",
style: TextStyle(color: Colors.white, fontSize: 20), // style: TextStyle(color: Colors.white, fontSize: 20),
), // ),
onPressed: () => Get.back(), // onPressed: () => Get.back(),
color: Color(0xffffc40d), // color: Color(0xffffc40d),
radius: BorderRadius.circular(8.w), // radius: BorderRadius.circular(8.w),
), // ),
], // ],
).show(); // ).show();
}, },
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(

@ -24,7 +24,6 @@ import 'package:akuCommunity/pages/industry_committee/industry_committee_page.da
import 'package:akuCommunity/pages/life_pay/life_pay_page.dart'; import 'package:akuCommunity/pages/life_pay/life_pay_page.dart';
import 'package:akuCommunity/pages/message_center_page/message_center_page.dart'; import 'package:akuCommunity/pages/message_center_page/message_center_page.dart';
import 'package:akuCommunity/pages/open_door_page/open_door_page.dart'; import 'package:akuCommunity/pages/open_door_page/open_door_page.dart';
import 'package:akuCommunity/pages/scan/scan_page.dart';
import 'package:akuCommunity/pages/things_page/fixed_submit_page.dart'; import 'package:akuCommunity/pages/things_page/fixed_submit_page.dart';
import 'package:akuCommunity/pages/total_application_page/total_applications_page.dart'; import 'package:akuCommunity/pages/total_application_page/total_applications_page.dart';
import 'package:akuCommunity/pages/visitor_access_page/visitor_access_page.dart'; import 'package:akuCommunity/pages/visitor_access_page/visitor_access_page.dart';
@ -33,7 +32,6 @@ import 'package:akuCommunity/ui/manager/advice/advice_page.dart';
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/container_comment.dart'; import 'package:akuCommunity/widget/container_comment.dart';
import 'package:akuCommunity/widget/grid_buttons.dart'; import 'package:akuCommunity/widget/grid_buttons.dart';
import 'package:akuCommunity/widget/single_ad_space.dart';
import 'widget/home_card.dart'; import 'widget/home_card.dart';
import 'widget/home_search.dart'; import 'widget/home_search.dart';
import 'widget/home_swiper.dart'; import 'widget/home_swiper.dart';
@ -135,11 +133,6 @@ class _HomePageState extends State<HomePage>
appBar: AnimateAppBar( appBar: AnimateAppBar(
scrollController: _scrollController, scrollController: _scrollController,
actions: [ actions: [
_buildColButton(
icon: AntDesign.scan1,
title: '扫一扫',
onTap: ScanPage().to,
),
_buildColButton( _buildColButton(
icon: AntDesign.bells, icon: AntDesign.bells,
title: '消息', title: '消息',

@ -1,41 +0,0 @@
// Dart imports:
import 'dart:io';
// Flutter imports:
import 'package:flutter/material.dart';
// Package imports:
import 'package:qr_code_scanner/qr_code_scanner.dart';
class ScanPage extends StatefulWidget {
ScanPage({Key key}) : super(key: key);
@override
_ScanPageState createState() => _ScanPageState();
}
class _ScanPageState extends State<ScanPage> {
final GlobalKey _qrKey = GlobalKey(debugLabel: 'QR');
QRViewController _controller;
@override
void reassemble() {
super.reassemble();
if (Platform.isAndroid) {
_controller.pauseCamera();
} else if (Platform.isIOS) {
_controller.resumeCamera();
}
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: QRView(
key: _qrKey,
onQRViewCreated: (controller) {
_controller = controller;
},
),
);
}
}

@ -37,6 +37,7 @@ class _VisitorPassportPageState extends State<VisitorPassportPage> {
return Scaffold( return Scaffold(
backgroundColor: Color(0xFF333333), backgroundColor: Color(0xFF333333),
appBar: AppBar( appBar: AppBar(
brightness: Brightness.dark,
leading: BeeBackButton(color: Colors.white), leading: BeeBackButton(color: Colors.white),
backgroundColor: Color(0xFF333333), backgroundColor: Color(0xFF333333),
elevation: 0, elevation: 0,

@ -863,13 +863,6 @@ packages:
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.3.0" version: "1.3.0"
qr_code_scanner:
dependency: "direct main"
description:
name: qr_code_scanner
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.3.0"
qr_flutter: qr_flutter:
dependency: "direct main" dependency: "direct main"
description: description:
@ -900,13 +893,6 @@ packages:
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "3.0.0" version: "3.0.0"
rflutter_alert:
dependency: "direct main"
description:
name: rflutter_alert
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.0"
rxdart: rxdart:
dependency: transitive dependency: transitive
description: description:

@ -70,10 +70,6 @@ dependencies:
dio: ^3.0.10 dio: ^3.0.10
#骨架 #骨架
shimmer: ^1.1.2 shimmer: ^1.1.2
#动画alert
rflutter_alert: ^1.1.0
qr_code_scanner: ^0.3.0
#时间选择 #时间选择
flutter_datetime_picker: ^1.4.0 flutter_datetime_picker: ^1.4.0
#随机二维码 #随机二维码
@ -104,7 +100,6 @@ dependencies:
url: http://192.168.2.201:8099/aku_fe/power_logger.git url: http://192.168.2.201:8099/aku_fe/power_logger.git
flutter_rating_bar: ^3.2.0+1 flutter_rating_bar: ^3.2.0+1
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter

Loading…
Cancel
Save