Merge branch 'master_hyx'
This commit is contained in:
commit
2447cb43dc
@ -12,8 +12,7 @@ class SendEmailNotificationPage extends StatefulWidget {
|
|||||||
const SendEmailNotificationPage({Key? key}) : super(key: key);
|
const SendEmailNotificationPage({Key? key}) : super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<SendEmailNotificationPage> createState() =>
|
State<SendEmailNotificationPage> createState() => _SendEmailNotificationPageState();
|
||||||
_SendEmailNotificationPageState();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class _SendEmailNotificationPageState extends State<SendEmailNotificationPage> {
|
class _SendEmailNotificationPageState extends State<SendEmailNotificationPage> {
|
||||||
@ -21,87 +20,80 @@ class _SendEmailNotificationPageState extends State<SendEmailNotificationPage> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
_emailController.text =
|
_emailController.text = "亲爱的用户 \n\n你收到电子钥匙,请试用APP(www.baidu.com)或小程序开锁 \n\n星锁";
|
||||||
"亲爱的用户 \n\n你收到电子钥匙,请试用APP(www.baidu.com)或小程序开锁 \n\n星锁";
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: AppColors.mainBackgroundColor,
|
backgroundColor: AppColors.mainBackgroundColor,
|
||||||
appBar: TitleAppBar(
|
appBar: TitleAppBar(barTitle: "邮件通知", haveBack: true, backgroundColor: AppColors.mainColor),
|
||||||
barTitle: "邮件通知",
|
body: SingleChildScrollView(
|
||||||
haveBack: true,
|
child: Column(
|
||||||
backgroundColor: AppColors.mainColor),
|
children: [
|
||||||
body: Column(
|
CommonItem(
|
||||||
children: [
|
leftTitel: TranslationLoader.lanKeys!.receiver!.tr,
|
||||||
CommonItem(
|
rightTitle: "786612630@qq.com",
|
||||||
leftTitel: TranslationLoader.lanKeys!.receiver!.tr,
|
isHaveLine: true,
|
||||||
rightTitle: "786612630@qq.com",
|
),
|
||||||
isHaveLine: true,
|
CommonItem(
|
||||||
),
|
leftTitel: "类型",
|
||||||
CommonItem(
|
rightTitle: "个人邮件",
|
||||||
leftTitel: "类型",
|
|
||||||
rightTitle: "个人邮件",
|
|
||||||
isHaveDirection: true,
|
|
||||||
),
|
|
||||||
Container(height: 10.h),
|
|
||||||
CommonItem(
|
|
||||||
leftTitel: "模板",
|
|
||||||
rightTitle: "默认模板",
|
|
||||||
isHaveDirection: true,
|
isHaveDirection: true,
|
||||||
isHaveLine: true),
|
),
|
||||||
Container(
|
Container(height: 10.h),
|
||||||
height: 360.h,
|
CommonItem(leftTitel: "模板", rightTitle: "默认模板", isHaveDirection: true, isHaveLine: true),
|
||||||
color: Colors.white,
|
Container(
|
||||||
padding: EdgeInsets.only(
|
height: 360.h,
|
||||||
left: 20.w, right: 20.w, top: 20.h, bottom: 20.h),
|
color: Colors.white,
|
||||||
child: TextField(
|
padding: EdgeInsets.only(left: 20.w, right: 20.w, top: 20.h, bottom: 20.h),
|
||||||
maxLines: 8,
|
child: TextField(
|
||||||
maxLength: 1000,
|
maxLines: 8,
|
||||||
textAlign: TextAlign.start,
|
maxLength: 1000,
|
||||||
controller: _emailController,
|
textAlign: TextAlign.start,
|
||||||
style: TextStyle(
|
controller: _emailController,
|
||||||
color: Colors.black,
|
style: TextStyle(
|
||||||
fontSize: 22.sp,
|
color: Colors.black,
|
||||||
),
|
fontSize: 22.sp,
|
||||||
decoration: InputDecoration(
|
|
||||||
border: OutlineInputBorder(
|
|
||||||
///设置边框四个角的弧度
|
|
||||||
borderRadius: BorderRadius.all(Radius.circular(20.h)),
|
|
||||||
|
|
||||||
///用来配置边框的样式
|
|
||||||
borderSide: const BorderSide(
|
|
||||||
///设置边框的颜色
|
|
||||||
color: Color(0xffB2B2B2),
|
|
||||||
|
|
||||||
///设置边框的粗细
|
|
||||||
width: 0.5,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
decoration: InputDecoration(
|
||||||
|
border: OutlineInputBorder(
|
||||||
|
///设置边框四个角的弧度
|
||||||
|
borderRadius: BorderRadius.all(Radius.circular(20.h)),
|
||||||
|
|
||||||
///用来配置输入框获取焦点时的颜色
|
///用来配置边框的样式
|
||||||
focusedBorder: OutlineInputBorder(
|
borderSide: const BorderSide(
|
||||||
///设置边框四个角的弧度
|
///设置边框的颜色
|
||||||
borderRadius: BorderRadius.all(Radius.circular(20.h)),
|
color: Color(0xffB2B2B2),
|
||||||
|
|
||||||
///用来配置边框的样式
|
///设置边框的粗细
|
||||||
borderSide: const BorderSide(
|
width: 0.5,
|
||||||
///设置边框的颜色
|
),
|
||||||
color: Color(0xffB2B2B2),
|
),
|
||||||
|
|
||||||
///设置边框的粗细
|
///用来配置输入框获取焦点时的颜色
|
||||||
width: 1,
|
focusedBorder: OutlineInputBorder(
|
||||||
|
///设置边框四个角的弧度
|
||||||
|
borderRadius: BorderRadius.all(Radius.circular(20.h)),
|
||||||
|
|
||||||
|
///用来配置边框的样式
|
||||||
|
borderSide: const BorderSide(
|
||||||
|
///设置边框的颜色
|
||||||
|
color: Color(0xffB2B2B2),
|
||||||
|
|
||||||
|
///设置边框的粗细
|
||||||
|
width: 1,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
Container(height: 40.h),
|
||||||
Container(height: 40.h),
|
SubmitBtn(
|
||||||
SubmitBtn(
|
btnName: '发送',
|
||||||
btnName: '发送',
|
fontSize: 28.sp,
|
||||||
fontSize: 28.sp,
|
borderRadius: 20.w,
|
||||||
borderRadius: 20.w,
|
margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 30.w),
|
||||||
margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 30.w),
|
padding: EdgeInsets.only(top: 25.w, bottom: 25.w),
|
||||||
padding: EdgeInsets.only(top: 25.w, bottom: 25.w),
|
onClick: () {}),
|
||||||
onClick: () {}),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user