2024-04-23 14:45:22 +08:00
|
|
|
import 'package:flutter/material.dart';
|
2024-04-19 13:47:56 +08:00
|
|
|
import 'package:get/get.dart';
|
2024-04-20 16:58:31 +08:00
|
|
|
import 'package:star_lock/main/lockDetail/messageWarn/lockUser/lockUser_entity.dart';
|
2024-04-23 10:51:49 +08:00
|
|
|
import 'package:star_lock/main/lockDetail/messageWarn/msgNotification/openDoorNotify/openDoorNotify_entity.dart';
|
2024-04-19 13:47:56 +08:00
|
|
|
|
|
|
|
|
class AddFamilyState {
|
|
|
|
|
AddFamilyState() {
|
2024-07-17 17:29:30 +08:00
|
|
|
final Map map = Get.arguments;
|
2024-04-23 10:51:49 +08:00
|
|
|
if (map['lockId'] != null) {
|
|
|
|
|
getLockId.value = map['lockId'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (map['isDetail'] != null) {
|
|
|
|
|
isDetail.value = map['isDetail'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (map['itemData'] != null) {
|
|
|
|
|
familyData.value = map['itemData'];
|
2024-04-23 14:45:22 +08:00
|
|
|
lockUserKeys.value.currentKeyName =
|
|
|
|
|
familyData.value.settingValue!.remark!;
|
2024-07-17 17:29:30 +08:00
|
|
|
openDoorId.value = familyData.value.settingValue!.openDoorId!;
|
2024-04-19 13:47:56 +08:00
|
|
|
}
|
|
|
|
|
}
|
2024-07-17 17:29:30 +08:00
|
|
|
final TextEditingController changeNameController = TextEditingController();
|
|
|
|
|
RxInt getLockId = 0.obs;
|
|
|
|
|
Rx<LockUserListKeys> lockUserKeys = LockUserListKeys().obs;
|
|
|
|
|
RxList emailReceiverList = [].obs;
|
|
|
|
|
RxList phoneReceiverList = [].obs;
|
|
|
|
|
RxString emailListStr = ''.obs;
|
|
|
|
|
RxString phontListStr = ''.obs;
|
|
|
|
|
|
|
|
|
|
RxInt openDoorId = 0.obs;
|
|
|
|
|
RxInt openDoorType = 0.obs;
|
|
|
|
|
Rx<DataList> familyData = DataList().obs;
|
|
|
|
|
RxBool isDetail = false.obs;
|
2024-04-19 13:47:56 +08:00
|
|
|
}
|