2024-03-18 16:16:51 +08:00
|
|
|
import 'package:flutter_blue_plus/flutter_blue_plus.dart';
|
2023-08-02 09:22:39 +08:00
|
|
|
import 'package:get/get.dart';
|
|
|
|
|
|
|
|
|
|
class NearbyLockState {
|
2024-03-18 16:16:51 +08:00
|
|
|
RxList<ScanResult> devices = <ScanResult>[].obs;
|
2024-06-07 10:53:24 +08:00
|
|
|
RxBool ifCurrentScreen = true.obs; // 是否是当前界面,用于判断是否需要针对当前界面进行展示
|
2024-04-29 11:40:04 +08:00
|
|
|
// var sureBtnState = 0.obs;// 0可点击 1 不可点击
|
2024-06-07 10:53:24 +08:00
|
|
|
// int differentialTime = 0;
|
|
|
|
|
int serverTime = 0;// 服务器时间即UTC+0时间
|
2024-04-29 11:40:04 +08:00
|
|
|
|
2024-06-07 10:53:24 +08:00
|
|
|
RxString selectLockName = ''.obs;
|
2023-12-13 11:54:34 +08:00
|
|
|
|
2024-06-07 10:53:24 +08:00
|
|
|
int timestampValue = 0;
|
|
|
|
|
Map lockInfo = {};
|
|
|
|
|
String featureValue = '';
|
|
|
|
|
String featureSettingValue = '';
|
|
|
|
|
List featureSettingParams = [];
|
2023-12-13 11:54:34 +08:00
|
|
|
|
2024-06-07 10:53:24 +08:00
|
|
|
RxBool otaState = false.obs; //ota 升级
|
|
|
|
|
RxBool otaUpdateIng = false.obs;
|
|
|
|
|
RxDouble otaProgress = 0.00.obs;
|
2024-05-07 16:45:59 +08:00
|
|
|
bool oTAProgressDialog = false;
|
2024-01-23 17:48:06 +08:00
|
|
|
}
|