feat:修改 xhj 电池的判断
This commit is contained in:
parent
611a1e06fd
commit
bc08c31a64
@ -39,6 +39,7 @@ class StarLockLoginLogic extends BaseGetXController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> login() async {
|
Future<void> login() async {
|
||||||
|
FocusScope.of(Get.context!).requestFocus(FocusNode());//关闭键盘
|
||||||
final LoginEntity entity = await ApiRepository.to.login(
|
final LoginEntity entity = await ApiRepository.to.login(
|
||||||
loginType: '1',
|
loginType: '1',
|
||||||
password: state.pwd.value,
|
password: state.pwd.value,
|
||||||
|
|||||||
@ -370,26 +370,36 @@ class _LockDetailPageState extends State<LockDetailPage>
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
height: 15.h,
|
height: 15.h,
|
||||||
),
|
),
|
||||||
Row(
|
Visibility(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
visible: state
|
||||||
children: <Widget>[
|
.keyInfos.value.lockFeature!.isSupportBackupBattery ==
|
||||||
Image.asset(
|
1,
|
||||||
showElectricIcon(state.electricQuantity.value),
|
child: Row(
|
||||||
width: 30.w,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
height: 24.w),
|
children: <Widget>[
|
||||||
SizedBox(width: 2.w),
|
FlavorsImg(
|
||||||
Text('--%',
|
child: Image.asset(
|
||||||
style: TextStyle(
|
showElectricIcon(
|
||||||
fontSize: 18.sp,
|
state.electricQuantityStandby.value),
|
||||||
color: AppColors.darkGrayTextColor)),
|
width: 30.w,
|
||||||
SizedBox(width: 2.w),
|
height: 24.w),
|
||||||
Icon(
|
),
|
||||||
Icons.info, // 使用内置的 warning 图标,它是一个叹号
|
SizedBox(width: 2.w),
|
||||||
color: AppColors.mainColor, // 设置图标颜色为红色
|
Text('${state.electricQuantityStandby.value}%',
|
||||||
size: 25.w, // 设置图标大小为 30
|
style: TextStyle(
|
||||||
),
|
fontSize: 18.sp,
|
||||||
SizedBox(width: 20.w),
|
color: AppColors.darkGrayTextColor)),
|
||||||
],
|
SizedBox(width: 2.w),
|
||||||
|
FlavorsImg(
|
||||||
|
child: Icon(
|
||||||
|
Icons.info, // 使用内置的 warning 图标,它是一个叹号
|
||||||
|
color: AppColors.mainColor, // 设置图标颜色为红色
|
||||||
|
size: 25.w, // 设置图标大小为 30
|
||||||
|
),
|
||||||
|
),
|
||||||
|
SizedBox(width: 20.w),
|
||||||
|
],
|
||||||
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user