|
|
@ -220,6 +220,7 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
|
|
|
|
Icon(
|
|
|
|
Icon(
|
|
|
|
CupertinoIcons.chevron_right,
|
|
|
|
CupertinoIcons.chevron_right,
|
|
|
|
size: 24.w,
|
|
|
|
size: 24.w,
|
|
|
|
|
|
|
|
color: Colors.black.withOpacity(0.45),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -299,6 +300,7 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
|
|
|
|
Icon(
|
|
|
|
Icon(
|
|
|
|
CupertinoIcons.chevron_right,
|
|
|
|
CupertinoIcons.chevron_right,
|
|
|
|
size: 24.w,
|
|
|
|
size: 24.w,
|
|
|
|
|
|
|
|
color: Colors.black.withOpacity(0.45),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -355,6 +357,7 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
|
|
|
|
Icon(
|
|
|
|
Icon(
|
|
|
|
CupertinoIcons.chevron_right,
|
|
|
|
CupertinoIcons.chevron_right,
|
|
|
|
size: 24.w,
|
|
|
|
size: 24.w,
|
|
|
|
|
|
|
|
color: Colors.black.withOpacity(0.45),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -403,17 +406,17 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Material(
|
|
|
|
child: Material(
|
|
|
|
color: Colors.transparent,
|
|
|
|
color: Colors.transparent,
|
|
|
|
child:
|
|
|
|
child:'${_appointDate==null ? '请选择开始时间' : DateUtil.formatDate(_appointDate, format: 'MM月dd日 HH:mm')}'
|
|
|
|
'${DateUtil.formatDate(_appointDate, format: DateFormats.zh_mo_d_h_m)}'
|
|
|
|
|
|
|
|
.text
|
|
|
|
.text
|
|
|
|
.size(24.sp)
|
|
|
|
.size(28.sp)
|
|
|
|
.color(Colors.black.withOpacity(0.85))
|
|
|
|
.color(Colors.black.withOpacity(_appointDate == null ? 0.25 : 0.85))
|
|
|
|
.make(),
|
|
|
|
.make(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'-'.text.size(28.sp).color(Colors.black.withOpacity(0.85)).make(),
|
|
|
|
'- '.text.size(28.sp).color(Colors.black.withOpacity(0.85)).make(),
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
|
|
|
|
child: GestureDetector(
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: () async {
|
|
|
|
onTap: () async {
|
|
|
|
_appointEndDate = await BeeDatePicker.timePicker(DateTime.now());
|
|
|
|
_appointEndDate = await BeeDatePicker.timePicker(DateTime.now());
|
|
|
@ -421,11 +424,10 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Material(
|
|
|
|
child: Material(
|
|
|
|
color: Colors.transparent,
|
|
|
|
color: Colors.transparent,
|
|
|
|
child:
|
|
|
|
child:'${_appointEndDate==null ? '请选择结束时间' : DateUtil.formatDate(_appointEndDate, format: 'MM月dd日 HH:mm')}'
|
|
|
|
'${DateUtil.formatDate(_appointEndDate, format: DateFormats.zh_mo_d_h_m)}'
|
|
|
|
|
|
|
|
.text
|
|
|
|
.text
|
|
|
|
.size(24.sp)
|
|
|
|
.size(28.sp)
|
|
|
|
.color(Colors.black.withOpacity(_type == 0 ? 0.25 : 0.85))
|
|
|
|
.color(Colors.black.withOpacity(_appointEndDate == null ? 0.25 : 0.85))
|
|
|
|
.make(),
|
|
|
|
.make(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -433,6 +435,7 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
|
|
|
|
Icon(
|
|
|
|
Icon(
|
|
|
|
CupertinoIcons.chevron_right,
|
|
|
|
CupertinoIcons.chevron_right,
|
|
|
|
size: 24.w,
|
|
|
|
size: 24.w,
|
|
|
|
|
|
|
|
color: Colors.black.withOpacity(0.45),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -695,9 +698,11 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Icon(
|
|
|
|
Image.asset(
|
|
|
|
CupertinoIcons.location,
|
|
|
|
R.ASSETS_ICONS_ICON_MAIN_LOCATION_PNG,
|
|
|
|
size: 40.w,
|
|
|
|
width: 40.w,
|
|
|
|
|
|
|
|
height: 40.w,
|
|
|
|
|
|
|
|
color: Colors.black.withOpacity(0.45),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
20.w.widthBox,
|
|
|
|
20.w.widthBox,
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
@ -706,6 +711,13 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
|
|
|
|
if(_accessAddress.isEmptyOrNull && _accessAddressDetail.isEmptyOrNull)
|
|
|
|
|
|
|
|
'请输入任务地址'
|
|
|
|
|
|
|
|
.text
|
|
|
|
|
|
|
|
.size(32.sp)
|
|
|
|
|
|
|
|
.black
|
|
|
|
|
|
|
|
.color(Colors.black.withOpacity(0.25))
|
|
|
|
|
|
|
|
.make(),
|
|
|
|
'${_accessAddress ?? ''}'
|
|
|
|
'${_accessAddress ?? ''}'
|
|
|
|
.text
|
|
|
|
.text
|
|
|
|
.size(32.sp)
|
|
|
|
.size(32.sp)
|
|
|
@ -727,11 +739,11 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
|
|
|
|
Column(
|
|
|
|
Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
20.hb,
|
|
|
|
10.hb,
|
|
|
|
Icon(
|
|
|
|
Icon(
|
|
|
|
CupertinoIcons.chevron_right,
|
|
|
|
CupertinoIcons.chevron_right,
|
|
|
|
size: 40.w,
|
|
|
|
|
|
|
|
color: Colors.black.withOpacity(0.45),
|
|
|
|
color: Colors.black.withOpacity(0.45),
|
|
|
|
|
|
|
|
size: 24.w,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -785,6 +797,7 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
|
|
|
|
Icon(
|
|
|
|
Icon(
|
|
|
|
CupertinoIcons.chevron_right,
|
|
|
|
CupertinoIcons.chevron_right,
|
|
|
|
size: 24.w,
|
|
|
|
size: 24.w,
|
|
|
|
|
|
|
|
color: Colors.black.withOpacity(0.45),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -940,11 +953,6 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
|
|
|
|
.color(Colors.black.withOpacity(0.45))
|
|
|
|
.color(Colors.black.withOpacity(0.45))
|
|
|
|
.make(),
|
|
|
|
.make(),
|
|
|
|
Spacer(),
|
|
|
|
Spacer(),
|
|
|
|
'建议上传图片不超过6张'
|
|
|
|
|
|
|
|
.text
|
|
|
|
|
|
|
|
.size(24.sp)
|
|
|
|
|
|
|
|
.color(Colors.black.withOpacity(0.25))
|
|
|
|
|
|
|
|
.make(),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
24.w.heightBox,
|
|
|
|
24.w.heightBox,
|
|
|
|