remove qrcode scan

hmxc
小赖 4 years ago
parent 4e8bde934b
commit cb62ce67df

@ -4,8 +4,6 @@ import 'package:flutter/material.dart';
// Package imports:
import 'package:flutter_icons/flutter_icons.dart';
import 'package:get/get.dart';
import 'package:rflutter_alert/rflutter_alert.dart';
// Project imports:
import 'package:akuCommunity/base/assets_image.dart';
@ -17,11 +15,6 @@ class PayOrderPage extends StatelessWidget {
final Bundle bundle;
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 = [
{
@ -58,42 +51,42 @@ class PayOrderPage extends StatelessWidget {
InkWell _payMode(BuildContext context, Widget widget, String title) {
return InkWell(
onTap: () {
Alert(
context: context,
title: "支付成功!~",
image: Container(
margin: EdgeInsets.only(top: 40.w),
height: 200.w,
width: 200.w,
alignment: Alignment.center,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [Color(0xffffe16b), Color(0xffffc40d)],
),
borderRadius: BorderRadius.all(Radius.circular(200.w)),
),
child: Icon(
Icons.check,
color: Colors.white,
size: 150.w,
),
),
style: alertStyle,
alertAnimation: fadeAlertAnimation,
buttons: [
DialogButton(
child: Text(
"确认",
style: TextStyle(color: Colors.white, fontSize: 20),
),
onPressed: () => Get.back(),
color: Color(0xffffc40d),
radius: BorderRadius.circular(8.w),
),
],
).show();
// Alert(
// context: context,
// title: "支付成功!~",
// image: Container(
// margin: EdgeInsets.only(top: 40.w),
// height: 200.w,
// width: 200.w,
// alignment: Alignment.center,
// decoration: BoxDecoration(
// gradient: LinearGradient(
// begin: Alignment.topCenter,
// end: Alignment.bottomCenter,
// colors: [Color(0xffffe16b), Color(0xffffc40d)],
// ),
// borderRadius: BorderRadius.all(Radius.circular(200.w)),
// ),
// child: Icon(
// Icons.check,
// color: Colors.white,
// size: 150.w,
// ),
// ),
// style: alertStyle,
// alertAnimation: fadeAlertAnimation,
// buttons: [
// DialogButton(
// child: Text(
// "确认",
// style: TextStyle(color: Colors.white, fontSize: 20),
// ),
// onPressed: () => Get.back(),
// color: Color(0xffffc40d),
// radius: BorderRadius.circular(8.w),
// ),
// ],
// ).show();
},
child: Container(
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/message_center_page/message_center_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/total_application_page/total_applications_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/widget/container_comment.dart';
import 'package:akuCommunity/widget/grid_buttons.dart';
import 'package:akuCommunity/widget/single_ad_space.dart';
import 'widget/home_card.dart';
import 'widget/home_search.dart';
import 'widget/home_swiper.dart';
@ -135,11 +133,6 @@ class _HomePageState extends State<HomePage>
appBar: AnimateAppBar(
scrollController: _scrollController,
actions: [
_buildColButton(
icon: AntDesign.scan1,
title: '扫一扫',
onTap: ScanPage().to,
),
_buildColButton(
icon: AntDesign.bells,
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(
backgroundColor: Color(0xFF333333),
appBar: AppBar(
brightness: Brightness.dark,
leading: BeeBackButton(color: Colors.white),
backgroundColor: Color(0xFF333333),
elevation: 0,

@ -863,13 +863,6 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
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:
dependency: "direct main"
description:
@ -900,13 +893,6 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
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:
dependency: transitive
description:

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

Loading…
Cancel
Save