Merge branch 'canary_release' into develop_liyi

This commit is contained in:
Liuyf 2025-03-31 18:59:11 +08:00
commit faa5deec84
4 changed files with 23 additions and 29 deletions

View File

@ -1,11 +1,10 @@
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:get/get.dart';
import '../app_settings/app_settings.dart';
import 'io_type.dart';
abstract class Reply{
abstract class Reply {
Reply.parseData(this.commandType, List<int> dataDetail);
CommandType? commandType;
@ -13,10 +12,10 @@ abstract class Reply{
//command key flag
int status = 0;
List<int> data = [];
static String logTag= '锁 -> App指令订阅类型 :';
static String logTag = '锁 -> App指令订阅类型 :';
void errorWithStstus(int status){
switch(status){
void errorWithStstus(int status) {
switch (status) {
case 0x00:
//
AppLog.log('$logTag ${commandType?.typeName} 0x00 成功');
@ -39,7 +38,7 @@ abstract class Reply{
case 0x04:
//
AppLog.log('$logTag ${commandType!.typeName} 0x04 用户未登记');
// showErrorMessage('用户未登记');
showErrorMessage('用户未登记'.tr);
break;
case 0x05:
//
@ -133,7 +132,7 @@ abstract class Reply{
}
}
void showErrorMessage(String message){
void showErrorMessage(String message) {
EasyLoading.showToast(message, duration: 2000.milliseconds);
}

View File

@ -1262,16 +1262,13 @@ class _LockDetailPageState extends State<LockDetailPage>
SizedBox(
width: 42.w,
height: 42.h,
child: FlavorsImg(
black: true,
child: Image.asset(iconUrl,
width: 42.w,
height: 42.w,
color: bottomBtnisEable
? AppColors.mainColor
: AppColors.lockDetailBottomBtnUneable,
fit: BoxFit.fitWidth),
),
child: Image.asset(iconUrl,
width: 42.w,
height: 42.w,
color: bottomBtnisEable
? AppColors.mainColor
: AppColors.lockDetailBottomBtnUneable,
fit: BoxFit.fitWidth),
),
SizedBox(height: 5.h),
Expanded(
@ -1295,16 +1292,13 @@ class _LockDetailPageState extends State<LockDetailPage>
SizedBox(
width: 42.w,
height: 42.w,
child: FlavorsImg(
black: true,
child: Image.asset(iconUrl,
width: 42.w,
height: 42.w,
color: bottomBtnisEable
? AppColors.mainColor
: AppColors.lockDetailBottomBtnUneable,
fit: BoxFit.fitWidth),
),
child: Image.asset(iconUrl,
width: 42.w,
height: 42.w,
color: bottomBtnisEable
? AppColors.mainColor
: AppColors.lockDetailBottomBtnUneable,
fit: BoxFit.fitWidth),
),
SizedBox(height: 15.h),
Text(

View File

@ -362,7 +362,8 @@ class _LockSetPageState extends State<LockSetPage>
//todo: API接口
//
Obx(() => Visibility(
visible: state.lockFeature.value.doubleAuthentication == 1,
//state.lockFeature.value.doubleAuthentication == 1,
visible: false,
child: CommonItem(
leftTitel: '双重认证'.tr,
rightTitle: '',

View File

@ -4,7 +4,7 @@ import 'flavors.dart';
import 'main.dart' as runner;
Future<void> main() async {
F.appFlavor = Flavor.sky;
F.appFlavor = Flavor.xhj;
// AppLog.log('local调用了main函数');
await runner.main();
}