2023-09-07 18:36:16 +08:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:get/get.dart';
|
2025-03-14 11:59:09 +08:00
|
|
|
import 'package:network_info_plus/network_info_plus.dart';
|
2023-09-07 18:36:16 +08:00
|
|
|
|
2024-03-09 17:17:38 +08:00
|
|
|
import '../../lockSet/lockSetInfo_entity.dart';
|
2023-09-07 18:36:16 +08:00
|
|
|
import 'configuringWifiEntity.dart';
|
|
|
|
|
|
2025-03-14 11:59:09 +08:00
|
|
|
class ConfiguringWifiState {
|
2023-09-07 18:36:16 +08:00
|
|
|
ConfiguringWifiState() {
|
2023-11-18 10:38:13 +08:00
|
|
|
var map = Get.arguments;
|
2024-08-19 11:01:37 +08:00
|
|
|
lockSetInfoData.value = map['lockSetInfoData'];
|
2025-02-24 17:02:38 +08:00
|
|
|
pageName.value = map['pageName'];
|
2023-11-18 10:38:13 +08:00
|
|
|
lockBasicInfo.value = lockSetInfoData.value.lockBasicInfo!;
|
2024-08-19 11:01:37 +08:00
|
|
|
if (map['wifiName'] != null) {
|
|
|
|
|
wifiName.value = map['wifiName'];
|
2024-03-09 17:17:38 +08:00
|
|
|
wifiNameController.text = wifiName.value;
|
|
|
|
|
}
|
2023-09-07 18:36:16 +08:00
|
|
|
}
|
2025-03-14 11:59:09 +08:00
|
|
|
|
2024-08-19 11:01:37 +08:00
|
|
|
Rx<ConfiguringWifiEntity> configuringWifiEntity = ConfiguringWifiEntity().obs;
|
|
|
|
|
Rx<LockSetInfoData> lockSetInfoData = LockSetInfoData().obs;
|
|
|
|
|
Rx<LockBasicInfo> lockBasicInfo = LockBasicInfo().obs;
|
|
|
|
|
|
|
|
|
|
RxString wifiName = ''.obs;
|
2025-02-24 17:02:38 +08:00
|
|
|
RxString pageName = ''.obs;
|
2024-08-19 11:01:37 +08:00
|
|
|
RxBool ifCurrentScreen = true.obs; // 是否是当前界面,用于判断是否需要针对当前界面进行展示
|
2025-03-14 11:59:09 +08:00
|
|
|
RxInt sureBtnState = 0.obs; // 0普通状态(可用) 1连接中(不可用)
|
2024-08-19 11:01:37 +08:00
|
|
|
|
|
|
|
|
TextEditingController wifiNameController = TextEditingController();
|
|
|
|
|
TextEditingController wifiPWDController = TextEditingController();
|
2025-01-09 14:10:10 +08:00
|
|
|
String getGatewayConfigurationStr = '';
|
2025-02-10 13:40:02 +08:00
|
|
|
|
2025-03-14 11:59:09 +08:00
|
|
|
RxBool isLoading = false.obs;
|
|
|
|
|
}
|