|
...
|
...
|
@@ -18,6 +18,9 @@ import 'package:one_key/res/colors.dart'; |
|
|
|
import 'package:one_key/utils/NumLengthInputFormatter.dart';
|
|
|
|
import 'package:one_key/utils/misc.dart';
|
|
|
|
import 'package:one_key/route/navigator_util.dart';
|
|
|
|
import 'package:one_key/utils/pick_date_nonli_gongli/pick_calendar_day.dart';
|
|
|
|
import 'package:one_key/utils/pick_date_nonli_gongli/pick_calendar_month.dart';
|
|
|
|
import 'package:one_key/utils/pick_date_nonli_gongli/pick_calendar_year.dart';
|
|
|
|
import 'package:one_key/utils/utils.dart';
|
|
|
|
import 'package:one_key/widgets/MyDivider.dart';
|
|
|
|
import 'package:one_key/widgets/common_button.dart';
|
|
...
|
...
|
@@ -2342,215 +2345,404 @@ class DialogUtil { |
|
|
|
static Future festivalAlertDialog(
|
|
|
|
BuildContext context, String name, double height,
|
|
|
|
{CustomCallBack rCallback, double fontSize = 28}) async {
|
|
|
|
String yearStr = '选填';
|
|
|
|
String monthStr = '';
|
|
|
|
String dayStr = '';
|
|
|
|
final action = await showDialog(
|
|
|
|
context: context,
|
|
|
|
barrierDismissible: true,
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
TextEditingController controller = TextEditingController();
|
|
|
|
controller.text = name;
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
body: Center(
|
|
|
|
child: Container(
|
|
|
|
padding:
|
|
|
|
EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(72)),
|
|
|
|
height: ScreenUtil().setWidth(height),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(ScreenUtil().setWidth(30))),
|
|
|
|
child: Card(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(ScreenUtil().setWidth(30)))), //设置圆角
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
// VEmptyView(60),
|
|
|
|
Stack(children: [
|
|
|
|
return StatefulBuilder(builder: (context, stateSetter) {
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
body: Center(
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(72)),
|
|
|
|
height: ScreenUtil().setWidth(height),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(ScreenUtil().setWidth(30))),
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Card(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(ScreenUtil().setWidth(30)))), //设置圆角
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
// VEmptyView(60),
|
|
|
|
Stack(children: [
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: ScreenUtil().setWidth(60),
|
|
|
|
bottom: ScreenUtil().setWidth(40)),
|
|
|
|
// color: Colors.red,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text('纪念日名称',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(fontSize),
|
|
|
|
color: MyColours.color_353535)),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
right: 0,
|
|
|
|
top: ScreenUtil().setWidth(36),
|
|
|
|
child: Text('删除',
|
|
|
|
style: TextStyle(
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
fontSize: ScreenUtil().setSp(26),
|
|
|
|
color: MyColours.color_199095)))
|
|
|
|
]),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(40),
|
|
|
|
// color: Colors.red,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(68)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Material(
|
|
|
|
color: Colors.transparent,
|
|
|
|
child: TextField(
|
|
|
|
controller: controller,
|
|
|
|
maxLines: 1,
|
|
|
|
|
|
|
|
// //光标颜色
|
|
|
|
// cursorColor:
|
|
|
|
// widget.isSelect ? Colors.white : MyColours.color_199095,
|
|
|
|
// //输入文本的样式
|
|
|
|
// inputFormatters: lenghtLimit
|
|
|
|
// ? [
|
|
|
|
// LengthLimitingTextInputFormatter(10),
|
|
|
|
// ]
|
|
|
|
// : [],
|
|
|
|
textAlignVertical:
|
|
|
|
TextAlignVertical.bottom,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(26),
|
|
|
|
),
|
|
|
|
decoration: InputDecoration(
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide.none),
|
|
|
|
hintText: '例:本人生日',
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil().setSp(26),
|
|
|
|
),
|
|
|
|
enabledBorder:
|
|
|
|
new UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide.none,
|
|
|
|
),
|
|
|
|
focusedBorder:
|
|
|
|
new UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide.none,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
onChanged: (value) {
|
|
|
|
name = value;
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context).requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
},
|
|
|
|
keyboardType: TextInputType.text))),
|
|
|
|
// VEmptyView(28),
|
|
|
|
MyDivider(ScreenUtil().setWidth(280 * 2),
|
|
|
|
ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_efefef),
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: ScreenUtil().setWidth(60),
|
|
|
|
top: ScreenUtil().setWidth(40),
|
|
|
|
bottom: ScreenUtil().setWidth(50)),
|
|
|
|
// color: Colors.red,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text('纪念日名称',
|
|
|
|
child: Text('纪念日日期',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(fontSize),
|
|
|
|
color: MyColours.color_353535)),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
right: 0,
|
|
|
|
top: ScreenUtil().setWidth(36),
|
|
|
|
child: Text('删除',
|
|
|
|
style: TextStyle(
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
fontSize: ScreenUtil().setSp(26),
|
|
|
|
color: MyColours.color_199095)))
|
|
|
|
]),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(40),
|
|
|
|
// color: Colors.red,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(68)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Material(
|
|
|
|
color: Colors.transparent,
|
|
|
|
child: TextField(
|
|
|
|
controller: controller,
|
|
|
|
maxLines: 1,
|
|
|
|
|
|
|
|
// //光标颜色
|
|
|
|
// cursorColor:
|
|
|
|
// widget.isSelect ? Colors.white : MyColours.color_199095,
|
|
|
|
// //输入文本的样式
|
|
|
|
// inputFormatters: lenghtLimit
|
|
|
|
// ? [
|
|
|
|
// LengthLimitingTextInputFormatter(10),
|
|
|
|
// ]
|
|
|
|
// : [],
|
|
|
|
textAlignVertical:
|
|
|
|
TextAlignVertical.bottom,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(5),
|
|
|
|
vertical: ScreenUtil().setWidth(6)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: true
|
|
|
|
? MyColours.color_199095
|
|
|
|
: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topLeft: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(10)),
|
|
|
|
bottomLeft: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(10))),
|
|
|
|
border: Border.all(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
width: ScreenUtil().setWidth(2))),
|
|
|
|
child: Text('公历',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(26),
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: true
|
|
|
|
? MyColours.color_ffffff
|
|
|
|
: MyColours.color_333333)),
|
|
|
|
)),
|
|
|
|
InkWell(
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(5),
|
|
|
|
vertical: ScreenUtil().setWidth(6)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: false
|
|
|
|
? MyColours.color_199095
|
|
|
|
: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topRight: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(10)),
|
|
|
|
bottomRight: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(10))),
|
|
|
|
border: Border.all(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
width: ScreenUtil().setWidth(2))),
|
|
|
|
child: Text('农历',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: false
|
|
|
|
? MyColours.color_ffffff
|
|
|
|
: MyColours.color_333333))),
|
|
|
|
),
|
|
|
|
HEmptyView(30),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
incrementCounterYear(
|
|
|
|
context,
|
|
|
|
true,
|
|
|
|
yearStr == '选填'
|
|
|
|
? DateTime.now().year.toString()
|
|
|
|
: yearStr, (year) {
|
|
|
|
print(year);
|
|
|
|
stateSetter(() {
|
|
|
|
yearStr = year;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
bottom: ScreenUtil().setWidth(4)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
bottom: BorderSide(
|
|
|
|
color: MyColours.color_E0E0E0,
|
|
|
|
width: ScreenUtil().setWidth(2)),
|
|
|
|
)),
|
|
|
|
child: Row(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.end,
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
child: Text(yearStr,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(26),
|
|
|
|
color: MyColours
|
|
|
|
.color_666666)),
|
|
|
|
),
|
|
|
|
HEmptyView(6),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(false
|
|
|
|
? 'c_arrow_up'
|
|
|
|
: 'c_arrow_down'),
|
|
|
|
width: ScreenUtil().setWidth(28),
|
|
|
|
// height: ScreenUtil().setWidth(10),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
decoration: InputDecoration(
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide.none),
|
|
|
|
hintText: '例:本人生日',
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil().setSp(26),
|
|
|
|
),
|
|
|
|
enabledBorder: new UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide.none,
|
|
|
|
),
|
|
|
|
focusedBorder: new UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide.none,
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
Text('年',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_333333)),
|
|
|
|
HEmptyView(10),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
incrementCounterMonth(
|
|
|
|
context,
|
|
|
|
true,
|
|
|
|
yearStr == '选填'
|
|
|
|
? DateTime.now().year.toString()
|
|
|
|
: yearStr,
|
|
|
|
monthStr == ''
|
|
|
|
? DateTime.now().month.toString()
|
|
|
|
: monthStr, (month) {
|
|
|
|
print(month);
|
|
|
|
stateSetter(() {
|
|
|
|
monthStr = month;
|
|
|
|
});
|
|
|
|
if (dayStr != '') {
|
|
|
|
List dayList = updateDay(
|
|
|
|
true,
|
|
|
|
yearStr == '选填'
|
|
|
|
? DateTime.now()
|
|
|
|
.year
|
|
|
|
.toString()
|
|
|
|
: yearStr,
|
|
|
|
monthStr == ''
|
|
|
|
? DateTime.now()
|
|
|
|
.month
|
|
|
|
.toString()
|
|
|
|
: monthStr);
|
|
|
|
if (!dayList.contains(dayStr)) {
|
|
|
|
stateSetter(() {
|
|
|
|
dayStr = '';
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
bottom: ScreenUtil().setWidth(4)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
bottom: BorderSide(
|
|
|
|
color: MyColours.color_E0E0E0,
|
|
|
|
width: ScreenUtil().setWidth(2)),
|
|
|
|
)),
|
|
|
|
child: Row(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.end,
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
child: Text(monthStr,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(26),
|
|
|
|
color: MyColours
|
|
|
|
.color_666666)),
|
|
|
|
),
|
|
|
|
HEmptyView(6),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(false
|
|
|
|
? 'c_arrow_up'
|
|
|
|
: 'c_arrow_down'),
|
|
|
|
width: ScreenUtil().setWidth(28),
|
|
|
|
// height: ScreenUtil().setWidth(10),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
onChanged: (value) {
|
|
|
|
name = value;
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context).requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
},
|
|
|
|
keyboardType: TextInputType.text))),
|
|
|
|
// VEmptyView(28),
|
|
|
|
MyDivider(ScreenUtil().setWidth(280 * 2),
|
|
|
|
ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_efefef),
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: ScreenUtil().setWidth(40),
|
|
|
|
bottom: ScreenUtil().setWidth(50)),
|
|
|
|
// color: Colors.red,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text('纪念日日期',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(fontSize),
|
|
|
|
color: MyColours.color_353535)),
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(10),
|
|
|
|
vertical: ScreenUtil().setWidth(10)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: true
|
|
|
|
? MyColours.color_199095
|
|
|
|
: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topLeft: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(10)),
|
|
|
|
bottomLeft: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(10))),
|
|
|
|
border: Border.all(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
width: ScreenUtil().setWidth(2))),
|
|
|
|
child: Text('公历',
|
|
|
|
)),
|
|
|
|
Text('月',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: true
|
|
|
|
? MyColours.color_ffffff
|
|
|
|
: MyColours.color_333333)),
|
|
|
|
)),
|
|
|
|
InkWell(
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(10),
|
|
|
|
vertical: ScreenUtil().setWidth(10)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: false
|
|
|
|
? MyColours.color_199095
|
|
|
|
: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topRight: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(10)),
|
|
|
|
bottomRight: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(10))),
|
|
|
|
border: Border.all(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
width: ScreenUtil().setWidth(2))),
|
|
|
|
child: Text('农历',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: false
|
|
|
|
? MyColours.color_ffffff
|
|
|
|
: MyColours.color_333333))),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setWidth(47 * 2),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text(
|
|
|
|
'取消',
|
|
|
|
color: MyColours.color_333333)),
|
|
|
|
HEmptyView(10),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
incrementCounterDay(
|
|
|
|
context,
|
|
|
|
true,
|
|
|
|
yearStr == '选填'
|
|
|
|
? DateTime.now().year.toString()
|
|
|
|
: yearStr,
|
|
|
|
monthStr == ''
|
|
|
|
? DateTime.now().month.toString()
|
|
|
|
: monthStr,
|
|
|
|
dayStr == ''
|
|
|
|
? DateTime.now().day.toString()
|
|
|
|
: dayStr, (day) {
|
|
|
|
print(dayStr);
|
|
|
|
stateSetter(() {
|
|
|
|
dayStr = day;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
bottom: ScreenUtil().setWidth(4)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
bottom: BorderSide(
|
|
|
|
color: MyColours.color_E0E0E0,
|
|
|
|
width: ScreenUtil().setWidth(2)),
|
|
|
|
)),
|
|
|
|
child: Row(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.end,
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
child: Text(dayStr,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(26),
|
|
|
|
color: MyColours
|
|
|
|
.color_666666)),
|
|
|
|
),
|
|
|
|
HEmptyView(6),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(false
|
|
|
|
? 'c_arrow_up'
|
|
|
|
: 'c_arrow_down'),
|
|
|
|
width: ScreenUtil().setWidth(28),
|
|
|
|
// height: ScreenUtil().setWidth(10),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
Text('日',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize: ScreenUtil().setWidth(34)),
|
|
|
|
),
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_333333)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(60),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
children: [
|
|
|
|
RoundButton(
|
|
|
|
width: ScreenUtil().setWidth(200),
|
|
|
|
height: ScreenUtil().setWidth(70),
|
|
|
|
radius: ScreenUtil().setWidth(10),
|
|
|
|
text: '取消',
|
|
|
|
fontSize: 28,
|
|
|
|
borderColor: MyColours.color_199095,
|
|
|
|
textColor: MyColours.color_199095,
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
},
|
|
|
|
),
|
|
|
|
onTap: () {
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
},
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setWidth(47 * 2),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text(
|
|
|
|
'保存',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize: ScreenUtil().setWidth(34)),
|
|
|
|
),
|
|
|
|
RoundButton(
|
|
|
|
width: ScreenUtil().setWidth(200),
|
|
|
|
height: ScreenUtil().setWidth(70),
|
|
|
|
radius: ScreenUtil().setWidth(10),
|
|
|
|
text: '保存',
|
|
|
|
fontSize: 28,
|
|
|
|
onPressed: () {
|
|
|
|
if (name == '' || name.trim().length == 0) {
|
|
|
|
Utils.showToast('请输入纪念日名称');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
rCallback(name);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
onTap: () {
|
|
|
|
if (name == '' || name.trim().length == 0) {
|
|
|
|
Utils.showToast('请输入纪念日名称');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
rCallback(name);
|
|
|
|
},
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
));
|
|
|
|
));
|
|
|
|
});
|
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
...
|
...
|
|