Daisy 9232999c0d 1,新增我的-设置-锁用户管理模块UI
2,新增我的-设置-授权管理员模块UI
3,修改commonItem的line颜色
4,修改部分页面的Switch样式
2023-07-24 14:36:56 +08:00

75 lines
2.9 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import '../../../../app_settings/app_colors.dart';
import '../../../../tools/submitBtn.dart';
import '../../../../tools/titleAppBar.dart';
import '../../../../translations/trans_lib.dart';
import 'package:qr_flutter/qr_flutter.dart';
class UnlockQRCodePage extends StatefulWidget {
const UnlockQRCodePage({Key? key}) : super(key: key);
@override
State<UnlockQRCodePage> createState() => _UnlockQRCodePageState();
}
class _UnlockQRCodePageState extends State<UnlockQRCodePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColors.mainBackgroundColor,
appBar: TitleAppBar(
barTitle: TranslationLoader.lanKeys!.burglarAlarm!.tr,
haveBack: true,
backgroundColor: AppColors.mainColor),
body: Column(
children: [
Container(
padding: EdgeInsets.all(25.w),
margin: EdgeInsets.all(25.w),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(10.h)),
),
child: Text(
"拥有电子钥匙的人,通过微信扫一扫这个二维码,即可开门。每把锁的二维码都不相同,你可以将其打印出来贴在对应的锁旁边")),
Container(
width: 1.sw,
padding: EdgeInsets.only(top: 50.w),
margin: EdgeInsets.only(left: 25.w, right: 25.w),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(10.h)),
),
child: Column(
children: [
// Image.asset('images/main/icon_addDoorMagnetic_tip.png', width: 300.w, height: 300.w,),
// QrImageView(
// data:'二维码',
// size:300,
// ),
//by Daisy ##warning
QrImage(data: 'www.baidu.com', size: 300.w),
SizedBox(
height: 50.w,
),
SubmitBtn(
btnName: TranslationLoader.lanKeys!.share!.tr,
borderRadius: 20.w,
fontSize: 32.sp,
width: 250.w,
// margin: EdgeInsets.only(left: 03.w, right: 30.w, top: 20.w),
padding: EdgeInsets.only(top: 20.w, bottom: 20.w),
onClick: () {}),
SizedBox(
height: 60.w,
)
],
)),
],
));
}
}