2023-07-10 17:50:31 +08:00
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
2023-09-15 09:43:20 +08:00
|
|
|
|
import 'package:get/get_utils/get_utils.dart';
|
|
|
|
|
|
import 'package:star_lock/translations/trans_lib.dart';
|
2023-07-10 17:50:31 +08:00
|
|
|
|
|
|
|
|
|
|
import '../../../../app_settings/app_colors.dart';
|
|
|
|
|
|
import '../../../../tools/commonItem.dart';
|
|
|
|
|
|
import '../../../../tools/submitBtn.dart';
|
|
|
|
|
|
import '../../../../tools/titleAppBar.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class SendEmailNotificationPage extends StatefulWidget {
|
2023-07-15 15:11:28 +08:00
|
|
|
|
const SendEmailNotificationPage({Key? key}) : super(key: key);
|
2023-07-10 17:50:31 +08:00
|
|
|
|
|
|
|
|
|
|
@override
|
2024-04-09 10:25:23 +08:00
|
|
|
|
State<SendEmailNotificationPage> createState() => _SendEmailNotificationPageState();
|
2023-07-10 17:50:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class _SendEmailNotificationPageState extends State<SendEmailNotificationPage> {
|
|
|
|
|
|
final TextEditingController _emailController = TextEditingController();
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
|
Widget build(BuildContext context) {
|
2024-04-09 10:25:23 +08:00
|
|
|
|
_emailController.text = "亲爱的用户 \n\n你收到电子钥匙,请试用APP(www.baidu.com)或小程序开锁 \n\n星锁";
|
2023-07-10 17:50:31 +08:00
|
|
|
|
return Scaffold(
|
|
|
|
|
|
backgroundColor: AppColors.mainBackgroundColor,
|
2024-04-09 10:25:23 +08:00
|
|
|
|
appBar: TitleAppBar(barTitle: "邮件通知", haveBack: true, backgroundColor: AppColors.mainColor),
|
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
children: [
|
|
|
|
|
|
CommonItem(
|
|
|
|
|
|
leftTitel: TranslationLoader.lanKeys!.receiver!.tr,
|
|
|
|
|
|
rightTitle: "786612630@qq.com",
|
|
|
|
|
|
isHaveLine: true,
|
|
|
|
|
|
),
|
|
|
|
|
|
CommonItem(
|
|
|
|
|
|
leftTitel: "类型",
|
|
|
|
|
|
rightTitle: "个人邮件",
|
2023-07-28 15:37:33 +08:00
|
|
|
|
isHaveDirection: true,
|
2024-04-09 10:25:23 +08:00
|
|
|
|
),
|
|
|
|
|
|
Container(height: 10.h),
|
|
|
|
|
|
CommonItem(leftTitel: "模板", rightTitle: "默认模板", isHaveDirection: true, isHaveLine: true),
|
|
|
|
|
|
Container(
|
|
|
|
|
|
height: 360.h,
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
padding: EdgeInsets.only(left: 20.w, right: 20.w, top: 20.h, bottom: 20.h),
|
|
|
|
|
|
child: TextField(
|
|
|
|
|
|
maxLines: 8,
|
|
|
|
|
|
maxLength: 1000,
|
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
|
controller: _emailController,
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
|
fontSize: 22.sp,
|
|
|
|
|
|
),
|
|
|
|
|
|
decoration: InputDecoration(
|
|
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
|
|
///设置边框四个角的弧度
|
|
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(20.h)),
|
2023-07-28 15:37:33 +08:00
|
|
|
|
|
2024-04-09 10:25:23 +08:00
|
|
|
|
///用来配置边框的样式
|
|
|
|
|
|
borderSide: const BorderSide(
|
|
|
|
|
|
///设置边框的颜色
|
|
|
|
|
|
color: Color(0xffB2B2B2),
|
2023-07-28 15:37:33 +08:00
|
|
|
|
|
2024-04-09 10:25:23 +08:00
|
|
|
|
///设置边框的粗细
|
|
|
|
|
|
width: 0.5,
|
|
|
|
|
|
),
|
2023-07-10 17:50:31 +08:00
|
|
|
|
),
|
2023-07-28 15:37:33 +08:00
|
|
|
|
|
2024-04-09 10:25:23 +08:00
|
|
|
|
///用来配置输入框获取焦点时的颜色
|
|
|
|
|
|
focusedBorder: OutlineInputBorder(
|
|
|
|
|
|
///设置边框四个角的弧度
|
|
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(20.h)),
|
2023-07-28 15:37:33 +08:00
|
|
|
|
|
2024-04-09 10:25:23 +08:00
|
|
|
|
///用来配置边框的样式
|
|
|
|
|
|
borderSide: const BorderSide(
|
|
|
|
|
|
///设置边框的颜色
|
|
|
|
|
|
color: Color(0xffB2B2B2),
|
2023-07-28 15:37:33 +08:00
|
|
|
|
|
2024-04-09 10:25:23 +08:00
|
|
|
|
///设置边框的粗细
|
|
|
|
|
|
width: 1,
|
|
|
|
|
|
),
|
2023-07-10 17:50:31 +08:00
|
|
|
|
),
|
|
|
|
|
|
),
|
|
|
|
|
|
),
|
|
|
|
|
|
),
|
2024-04-09 10:25:23 +08:00
|
|
|
|
Container(height: 40.h),
|
|
|
|
|
|
SubmitBtn(
|
|
|
|
|
|
btnName: '发送',
|
|
|
|
|
|
fontSize: 28.sp,
|
|
|
|
|
|
borderRadius: 20.w,
|
|
|
|
|
|
margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 30.w),
|
|
|
|
|
|
padding: EdgeInsets.only(top: 25.w, bottom: 25.w),
|
|
|
|
|
|
onClick: () {}),
|
|
|
|
|
|
],
|
|
|
|
|
|
),
|
2023-07-10 17:50:31 +08:00
|
|
|
|
),
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|