2.修改提醒方式点确定没有操作成功的提示,实际没有修改成功 3.修改开锁方式点击进去锁用户的勾应在对应的用户上,现勾都是在第一个。 4.家人详情,更改不成功,应有操作成功的提示,选了新的用户应直接刷新。
37 lines
1.2 KiB
Dart
Executable File
37 lines
1.2 KiB
Dart
Executable File
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:star_lock/main/lockDetail/messageWarn/lockUser/lockUser_entity.dart';
|
|
import 'package:star_lock/main/lockDetail/messageWarn/msgNotification/openDoorNotify/openDoorNotify_entity.dart';
|
|
|
|
class AddFamilyState {
|
|
AddFamilyState() {
|
|
final Map map = Get.arguments;
|
|
if (map['lockId'] != null) {
|
|
getLockId.value = map['lockId'];
|
|
}
|
|
|
|
if (map['isDetail'] != null) {
|
|
isDetail.value = map['isDetail'];
|
|
}
|
|
|
|
if (map['itemData'] != null) {
|
|
familyData.value = map['itemData'];
|
|
lockUserKeys.value.currentKeyName =
|
|
familyData.value.settingValue!.remark!;
|
|
openDoorId.value = familyData.value.settingValue!.openDoorId!;
|
|
}
|
|
}
|
|
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;
|
|
}
|