37 lines
1.4 KiB
Dart
37 lines
1.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:star_lock/mine/valueAddedServices/valueAddedServicesSMSTemplate/valueAddedServicesAddSMSTemplate/newSMSTemplate_entity.dart';
|
|
|
|
class NewSMSTemplateState {
|
|
NewSMSTemplateState() {
|
|
if (Get.arguments != null) {
|
|
final Map map = Get.arguments;
|
|
currentTemplate.value = map['currentTemplate'];
|
|
currentTemplate.refresh();
|
|
templateNameTf.text = currentTemplate.value.name ?? '';
|
|
templateOneTf.text = currentTemplate.value.regards ?? '';
|
|
templateTwoTf.text = currentTemplate.value.tips ?? '';
|
|
templateType.value = currentTemplate.value.type ?? 0;
|
|
}
|
|
}
|
|
|
|
//高亮样式
|
|
final TextStyle highStyle =
|
|
TextStyle(color: const Color(0xFFEEDFA8), fontSize: 20.sp);
|
|
|
|
//默认样式
|
|
final TextStyle defaultStyle =
|
|
TextStyle(color: Colors.black, fontSize: 20.sp);
|
|
|
|
final TextEditingController templateOneTf = TextEditingController();
|
|
final TextEditingController templateTwoTf = TextEditingController();
|
|
final TextEditingController templateNameTf = TextEditingController();
|
|
|
|
RxBool isVip = false.obs;
|
|
RxList<SMSTemplateData> templateList = <SMSTemplateData>[].obs;
|
|
Rx<SMSTemplateData> currentTemplate = SMSTemplateData().obs;
|
|
RxBool isShowDate = false.obs;
|
|
RxInt templateType = 0.obs;
|
|
}
|