58 lines
2.4 KiB
Dart
58 lines
2.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 {
|
|||
|
|
//高亮样式
|
|||
|
|
final TextStyle highStyle =
|
|||
|
|
TextStyle(color: const Color(0xFFEEDFA8), fontSize: 20.sp);
|
|||
|
|
|
|||
|
|
//默认样式
|
|||
|
|
final TextStyle defaultStyle =
|
|||
|
|
TextStyle(color: Colors.black, fontSize: 20.sp);
|
|||
|
|
|
|||
|
|
//预览样式封装-密码
|
|||
|
|
// late InlineSpan passwardSpan = TextSpan(children: <InlineSpan>[
|
|||
|
|
// TextSpan(
|
|||
|
|
// text:
|
|||
|
|
// '${TranslationLoader.lanKeys!.hello!.tr},\n${TranslationLoader.lanKeys!.yourRoomIs!.tr}:',
|
|||
|
|
// style: defaultStyle),
|
|||
|
|
// TextSpan(text: '201', style: highStyle),
|
|||
|
|
// TextSpan(
|
|||
|
|
// text: ' ${TranslationLoader.lanKeys!.theCodeToOpenTheDoorIs!.tr}: ',
|
|||
|
|
// style: defaultStyle),
|
|||
|
|
// TextSpan(text: '332211\n', style: highStyle),
|
|||
|
|
// TextSpan(
|
|||
|
|
// text: '${TranslationLoader.lanKeys!.periodValidity!.tr}: ',
|
|||
|
|
// style: defaultStyle),
|
|||
|
|
// TextSpan(text: '2021.12.11 12:00 - 2021.12.12 13:00。\n', style: highStyle),
|
|||
|
|
// TextSpan(
|
|||
|
|
// text: TranslationLoader.lanKeys!.templateTip1!.tr, style: defaultStyle),
|
|||
|
|
// ]);
|
|||
|
|
|
|||
|
|
//预览样式封装-电子钥匙
|
|||
|
|
// late InlineSpan electronicKeySpan = TextSpan(children: <InlineSpan>[
|
|||
|
|
// TextSpan(
|
|||
|
|
// text:
|
|||
|
|
// '${TranslationLoader.lanKeys!.hello!.tr},\n${TranslationLoader.lanKeys!.templateTip2!.tr}',
|
|||
|
|
// style: defaultStyle),
|
|||
|
|
// TextSpan(text: 'https://abc.com/bcd\n', style: highStyle),
|
|||
|
|
// TextSpan(
|
|||
|
|
// text: '${TranslationLoader.lanKeys!.templateTip3!.tr}\n',
|
|||
|
|
// style: defaultStyle),
|
|||
|
|
// TextSpan(text: 'https://abc.com/bcd', style: highStyle),
|
|||
|
|
// ]);
|
|||
|
|
|
|||
|
|
final TextEditingController templateOneTf = TextEditingController();
|
|||
|
|
final TextEditingController templateTwoTf = TextEditingController();
|
|||
|
|
final TextEditingController templateNameTf = TextEditingController();
|
|||
|
|
|
|||
|
|
RxBool isVip = false.obs;
|
|||
|
|
RxList<SMSTemplateData> templateList = <SMSTemplateData>[].obs;
|
|||
|
|
RxString templateTypeText = '电子钥匙'.tr.obs;
|
|||
|
|
RxString templateContentText = ''.obs; //模版内容
|
|||
|
|
Rx<SMSTemplateData> currentTemplate = SMSTemplateData().obs;
|
|||
|
|
RxBool isShowDate = false.obs;
|
|||
|
|
}
|