纠正发布任务图标问题、预计时间提示显示问题、删除图片提示内容

pull/1/head
戴余标 3 years ago
parent 776582c54d
commit 4042ff4f04

@ -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,

@ -43,6 +43,7 @@ class _TaskRemarkPageState extends State<TaskRemarkPage> {
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, borderRadius: BorderRadius.circular(16.w)), color: Colors.white, borderRadius: BorderRadius.circular(16.w)),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Row( Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,

@ -90,7 +90,7 @@ class _BeePickImageWidgetState extends State<BeePickImageWidget> {
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.w), borderRadius: BorderRadius.circular(8.w),
color: Colors.black.withOpacity(0.03)), color: Colors.black.withOpacity(0.03)),
child: Image.file(file), child: Image.file(file,fit: BoxFit.cover,),
), ),
Positioned( Positioned(
top: 8.w, top: 8.w,

Loading…
Cancel
Save