|
...
|
...
|
@@ -8,6 +8,8 @@ import 'package:common_utils/common_utils.dart'; |
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'package:flutter_lunar_datetime_picker/date_init.dart';
|
|
|
|
import 'package:flutter_lunar_datetime_picker/flutter_lunar_datetime_picker.dart';
|
|
|
|
import 'package:flutter_picker_plus/flutter_picker_plus.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
|
|
...
|
...
|
@@ -23,6 +25,7 @@ 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/lunar_calendar_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';
|
|
...
|
...
|
@@ -55,6 +58,12 @@ import '../models/titlte_type_model.dart'; |
|
|
|
import '../pages/my/marketing_center/theme_model.dart';
|
|
|
|
import '../provider/collect_store_provider.dart';
|
|
|
|
|
|
|
|
import 'package:flutter_lunar_datetime_picker/flutter_lunar_datetime_picker.dart';
|
|
|
|
import 'package:flutter_lunar_datetime_picker/datetime_picker_theme.dart'
|
|
|
|
as picker_theme;
|
|
|
|
|
|
|
|
import 'package:lunar/lunar.dart';
|
|
|
|
|
|
|
|
typedef CustomCallBack = void Function(Object? object);
|
|
|
|
typedef CustomCallBackMap = void Function(Map<String, String?> object);
|
|
|
|
|
|
...
|
...
|
@@ -11815,8 +11824,7 @@ class DialogUtil { |
|
|
|
static Future festivalAlertDialog(
|
|
|
|
BuildContext context, String name, double height,
|
|
|
|
{CustomCallBack? rCallback,
|
|
|
|
GestureTapCallback? delCallback,
|
|
|
|
double fontSize = 28,
|
|
|
|
double fontSize = 32,
|
|
|
|
String? yearStr = '选填',
|
|
|
|
String? monthStr = '',
|
|
|
|
String? dayStr = '',
|
|
...
|
...
|
@@ -11827,6 +11835,42 @@ class DialogUtil { |
|
|
|
builder: (BuildContext context) {
|
|
|
|
TextEditingController controller = TextEditingController();
|
|
|
|
controller.text = name;
|
|
|
|
|
|
|
|
yearStr = yearStr == '选填' ? DateTime.now().year.toString() : yearStr;
|
|
|
|
|
|
|
|
monthStr = monthStr == '' ? DateTime.now().month.toString() : monthStr;
|
|
|
|
|
|
|
|
dayStr = dayStr == '' ? DateTime.now().day.toString() : dayStr;
|
|
|
|
String show = (yearStr ?? '') +
|
|
|
|
'年' +
|
|
|
|
(monthStr ?? '') +
|
|
|
|
'月' +
|
|
|
|
(dayStr ?? '') +
|
|
|
|
'日';
|
|
|
|
|
|
|
|
DateTime now = DateTime(
|
|
|
|
int.parse(yearStr!),
|
|
|
|
int.parse(monthStr!),
|
|
|
|
int.parse(dayStr!),
|
|
|
|
);
|
|
|
|
|
|
|
|
if (!gongli) {
|
|
|
|
//格式化农历日期
|
|
|
|
|
|
|
|
show = (yearStr ?? '') +
|
|
|
|
'年' +
|
|
|
|
LunarCalendarUtil.formatLunarDate(
|
|
|
|
int.parse(monthStr!), int.parse(dayStr!));
|
|
|
|
print(show);
|
|
|
|
|
|
|
|
int mLeapMonth = LunarCalendarUtil.leapMonth(int.parse(yearStr!));
|
|
|
|
List<int?> time = LunarCalendarUtil.lunarToSolar(
|
|
|
|
int.parse(yearStr!),
|
|
|
|
int.parse(monthStr!),
|
|
|
|
int.parse(dayStr!),
|
|
|
|
mLeapMonth == int.parse(monthStr!));
|
|
|
|
now = DateTime(time[0]!, time[1]!, time[2]!);
|
|
|
|
}
|
|
|
|
return StatefulBuilder(builder: (context, stateSetter) {
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: Colors.transparent,
|
|
...
|
...
|
@@ -11862,25 +11906,25 @@ class DialogUtil { |
|
|
|
fontSize: ScreenUtil().setSp(fontSize),
|
|
|
|
color: MyColours.color_353535)),
|
|
|
|
),
|
|
|
|
monthStr == ''
|
|
|
|
? SizedBox()
|
|
|
|
: Positioned(
|
|
|
|
right: 0,
|
|
|
|
top: 0,
|
|
|
|
child: InkWell(
|
|
|
|
onTap: delCallback,
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: ScreenUtil().setWidth(36)),
|
|
|
|
child: Text('删除',
|
|
|
|
style: TextStyle(
|
|
|
|
decoration: TextDecoration
|
|
|
|
.underline,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(26),
|
|
|
|
color: MyColours
|
|
|
|
.color_199095)),
|
|
|
|
)))
|
|
|
|
// monthStr == ''
|
|
|
|
// ? SizedBox()
|
|
|
|
// : Positioned(
|
|
|
|
// right: 0,
|
|
|
|
// top: 0,
|
|
|
|
// child: InkWell(
|
|
|
|
// onTap: delCallback,
|
|
|
|
// child: Padding(
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// top: ScreenUtil().setWidth(36)),
|
|
|
|
// child: Text('删除',
|
|
|
|
// style: TextStyle(
|
|
|
|
// decoration: TextDecoration
|
|
|
|
// .underline,
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil().setSp(26),
|
|
|
|
// color: MyColours
|
|
|
|
// .color_199095)),
|
|
|
|
// )))
|
|
|
|
]),
|
|
|
|
|
|
|
|
Container(
|
|
...
|
...
|
@@ -11908,15 +11952,15 @@ class DialogUtil { |
|
|
|
TextAlignVertical.bottom,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(26),
|
|
|
|
),
|
|
|
|
fontSize: font(16),
|
|
|
|
color: MyColours.color_438E93),
|
|
|
|
decoration: InputDecoration(
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide.none),
|
|
|
|
hintText: '例:本人生日',
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil().setSp(26),
|
|
|
|
fontSize: font(16),
|
|
|
|
),
|
|
|
|
enabledBorder:
|
|
|
|
new UnderlineInputBorder(
|
|
...
|
...
|
@@ -12053,195 +12097,297 @@ class DialogUtil { |
|
|
|
: MyColours.color_333333))),
|
|
|
|
),
|
|
|
|
HEmptyView(30),
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
FocusScope.of(context).requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
incrementCounterYear(
|
|
|
|
context,
|
|
|
|
gongli,
|
|
|
|
yearStr == '选填'
|
|
|
|
? DateTime.now().year.toString()
|
|
|
|
: yearStr, (year) {
|
|
|
|
print(year);
|
|
|
|
stateSetter(() {
|
|
|
|
yearStr = year as String?;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
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),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
Text('年',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_333333)),
|
|
|
|
HEmptyView(10),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
FocusScope.of(context).requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
incrementCounterMonth(
|
|
|
|
context,
|
|
|
|
gongli,
|
|
|
|
yearStr == '选填'
|
|
|
|
? DateTime.now().year.toString()
|
|
|
|
: yearStr,
|
|
|
|
monthStr == ''
|
|
|
|
? DateTime.now().month.toString()
|
|
|
|
: monthStr, (month) {
|
|
|
|
print(month);
|
|
|
|
stateSetter(() {
|
|
|
|
monthStr = month as String?;
|
|
|
|
});
|
|
|
|
if (dayStr != '') {
|
|
|
|
List dayList = updateDay(
|
|
|
|
gongli,
|
|
|
|
yearStr == '选填'
|
|
|
|
? DateTime.now()
|
|
|
|
.year
|
|
|
|
.toString()
|
|
|
|
: yearStr,
|
|
|
|
monthStr == ''
|
|
|
|
? DateTime.now()
|
|
|
|
.month
|
|
|
|
.toString()
|
|
|
|
: monthStr);
|
|
|
|
if (!dayList.contains(dayStr)) {
|
|
|
|
stateSetter(() {
|
|
|
|
dayStr = '';
|
|
|
|
});
|
|
|
|
}
|
|
|
|
onTap: () {
|
|
|
|
DatePicker.showDatePicker(
|
|
|
|
context,
|
|
|
|
lunarPicker: !gongli,
|
|
|
|
showTime: false,
|
|
|
|
theme: picker_theme.DatePickerTheme(
|
|
|
|
backgroundColor:
|
|
|
|
MyColours.color_ffffff,
|
|
|
|
itemStyle: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: font(16)),
|
|
|
|
containerHeight: w(220),
|
|
|
|
titleHeight: w(58),
|
|
|
|
itemHeight: w(44),
|
|
|
|
cancelStyle: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: font(16)),
|
|
|
|
doneStyle: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: font(16))),
|
|
|
|
dateInitTime: DateInitTime(
|
|
|
|
currentTime: now,
|
|
|
|
maxTime: DateTime(2050, 12, 12),
|
|
|
|
minTime: DateTime(1900, 1, 1)),
|
|
|
|
onConfirm: (time, lunar) {
|
|
|
|
debugPrint(time.toString());
|
|
|
|
|
|
|
|
now = time;
|
|
|
|
|
|
|
|
if (gongli) {
|
|
|
|
yearStr = time.year.toString();
|
|
|
|
|
|
|
|
monthStr = time.month.toString();
|
|
|
|
dayStr = time.day.toString();
|
|
|
|
show = (yearStr ?? '') +
|
|
|
|
'年' +
|
|
|
|
(monthStr ?? '') +
|
|
|
|
'月' +
|
|
|
|
(dayStr ?? '') +
|
|
|
|
'日';
|
|
|
|
} else {
|
|
|
|
// 阳历转阴历
|
|
|
|
|
|
|
|
// 获取当前阴历
|
|
|
|
Lunar currentLunarTime =
|
|
|
|
Solar.fromDate(time).getLunar();
|
|
|
|
yearStr = currentLunarTime
|
|
|
|
.getYear()
|
|
|
|
.toString();
|
|
|
|
monthStr = currentLunarTime
|
|
|
|
.getMonth()
|
|
|
|
.toString();
|
|
|
|
dayStr = currentLunarTime
|
|
|
|
.getDay()
|
|
|
|
.toString();
|
|
|
|
//转换成农历
|
|
|
|
|
|
|
|
show = (yearStr ?? '') +
|
|
|
|
'年' +
|
|
|
|
LunarCalendarUtil.formatLunarDate(
|
|
|
|
int.parse(monthStr!),
|
|
|
|
int.parse(dayStr!));
|
|
|
|
|
|
|
|
print(show);
|
|
|
|
// int mLeapMonth =
|
|
|
|
// LunarCalendarUtil.leapMonth(
|
|
|
|
// int.parse(yearStr!));
|
|
|
|
// List<int?> time =
|
|
|
|
// LunarCalendarUtil.lunarToSolar(
|
|
|
|
// int.parse(yearStr!),
|
|
|
|
// int.parse(monthStr!),
|
|
|
|
// int.parse(dayStr!),
|
|
|
|
// mLeapMonth ==
|
|
|
|
// int.parse(monthStr!));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
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),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
Text('月',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_333333)),
|
|
|
|
HEmptyView(10),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
FocusScope.of(context).requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
incrementCounterDay(
|
|
|
|
context,
|
|
|
|
gongli,
|
|
|
|
yearStr == '选填'
|
|
|
|
? DateTime.now().year.toString()
|
|
|
|
: yearStr,
|
|
|
|
monthStr == ''
|
|
|
|
? DateTime.now().month.toString()
|
|
|
|
: monthStr,
|
|
|
|
dayStr == ''
|
|
|
|
? DateTime.now().day.toString()
|
|
|
|
: dayStr, (day) {
|
|
|
|
print(dayStr);
|
|
|
|
stateSetter(() {
|
|
|
|
dayStr = day as String?;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
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),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
|
|
|
|
stateSetter(() {});
|
|
|
|
},
|
|
|
|
onChanged: (time, lunar) {
|
|
|
|
debugPrint("change:${time.toString()}");
|
|
|
|
},
|
|
|
|
);
|
|
|
|
},
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
show,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_000000,
|
|
|
|
fontSize: font(16)),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
Text('日',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_333333)),
|
|
|
|
HEmptyView(8),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('calender_theme'),
|
|
|
|
width: w(16),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// InkWell(
|
|
|
|
// onTap: () {
|
|
|
|
// FocusScope.of(context).requestFocus(
|
|
|
|
// FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// incrementCounterYear(
|
|
|
|
// context,
|
|
|
|
// gongli,
|
|
|
|
// yearStr == '选填'
|
|
|
|
// ? DateTime.now().year.toString()
|
|
|
|
// : yearStr, (year) {
|
|
|
|
// print(year);
|
|
|
|
// stateSetter(() {
|
|
|
|
// yearStr = year as String?;
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// },
|
|
|
|
// 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),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// )),
|
|
|
|
// Text('年',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(28),
|
|
|
|
// color: MyColours.color_333333)),
|
|
|
|
// HEmptyView(10),
|
|
|
|
// InkWell(
|
|
|
|
// onTap: () {
|
|
|
|
// FocusScope.of(context).requestFocus(
|
|
|
|
// FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// incrementCounterMonth(
|
|
|
|
// context,
|
|
|
|
// gongli,
|
|
|
|
// yearStr == '选填'
|
|
|
|
// ? DateTime.now().year.toString()
|
|
|
|
// : yearStr,
|
|
|
|
// monthStr == ''
|
|
|
|
// ? DateTime.now().month.toString()
|
|
|
|
// : monthStr, (month) {
|
|
|
|
// print(month);
|
|
|
|
// stateSetter(() {
|
|
|
|
// monthStr = month as String?;
|
|
|
|
// });
|
|
|
|
// if (dayStr != '') {
|
|
|
|
// List dayList = updateDay(
|
|
|
|
// gongli,
|
|
|
|
// 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),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// )),
|
|
|
|
// Text('月',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(28),
|
|
|
|
// color: MyColours.color_333333)),
|
|
|
|
// HEmptyView(10),
|
|
|
|
// InkWell(
|
|
|
|
// onTap: () {
|
|
|
|
// FocusScope.of(context).requestFocus(
|
|
|
|
// FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// incrementCounterDay(
|
|
|
|
// context,
|
|
|
|
// gongli,
|
|
|
|
// yearStr == '选填'
|
|
|
|
// ? DateTime.now().year.toString()
|
|
|
|
// : yearStr,
|
|
|
|
// monthStr == ''
|
|
|
|
// ? DateTime.now().month.toString()
|
|
|
|
// : monthStr,
|
|
|
|
// dayStr == ''
|
|
|
|
// ? DateTime.now().day.toString()
|
|
|
|
// : dayStr, (day) {
|
|
|
|
// print(dayStr);
|
|
|
|
// stateSetter(() {
|
|
|
|
// dayStr = day as String?;
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// },
|
|
|
|
// 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(
|
|
|
|
// fontSize: ScreenUtil().setSp(28),
|
|
|
|
// color: MyColours.color_333333)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(60),
|
...
|
...
|
|