82 lines
2.6 KiB
Dart
Raw Normal View History

2023-07-10 17:50:31 +08:00
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';
2023-09-07 18:36:16 +08:00
import 'lockEscalation_logic.dart';
2023-07-10 17:50:31 +08:00
class LockEscalationPage extends StatefulWidget {
2023-07-15 15:11:28 +08:00
const LockEscalationPage({Key? key}) : super(key: key);
2023-07-10 17:50:31 +08:00
@override
State<LockEscalationPage> createState() => _LockEscalationPageState();
}
class _LockEscalationPageState extends State<LockEscalationPage> {
2023-09-07 18:36:16 +08:00
final logic = Get.put(LockEscalationLogic());
final state = Get.find<LockEscalationLogic>().state;
2023-07-10 17:50:31 +08:00
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
appBar: TitleAppBar(
barTitle: TranslationLoader.lanKeys!.lockEscalation!.tr,
haveBack: true,
backgroundColor: AppColors.mainColor),
body: Container(
2023-07-10 17:50:31 +08:00
padding: EdgeInsets.all(30.w),
child: Column(
children: [
SizedBox(
height: 60.h,
),
2023-07-10 17:50:31 +08:00
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.asset(
'images/main/icon_main_lockSet_lockEscalation.png',
width: 36.w,
height: 36.w,
),
SizedBox(
width: 10.w,
),
Text(
TranslationLoader.lanKeys!.haveNewVersion!.tr,
style:
TextStyle(fontSize: 24.sp, fontWeight: FontWeight.w600),
)
2023-07-10 17:50:31 +08:00
],
),
SizedBox(
height: 30.h,
),
Text(
"${TranslationLoader.lanKeys!.currentVersion!.tr}1.0.0",
style: TextStyle(
fontSize: 18.sp, color: AppColors.darkGrayTextColor),
),
SizedBox(
height: 10.h,
),
Text(
// "${TranslationLoader.lanKeys!.newVersion!.tr}1.0.1",
"未发现新版本",
style: TextStyle(color: AppColors.mainColor, fontSize: 18.sp),
),
SizedBox(
height: 40.h,
2023-07-10 17:50:31 +08:00
),
SubmitBtn(
btnName: TranslationLoader.lanKeys!.upgrade!.tr,
onClick: () {}),
2023-07-10 17:50:31 +08:00
],
),
));
2023-07-10 17:50:31 +08:00
}
}