纠正发布任务备注问题

pull/1/head
戴余标 3 years ago
parent 19469b774a
commit 263a1eac5c

@ -776,7 +776,7 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
_content = await Get.to(() => TaskRemarkPage( _content = await Get.to(() => TaskRemarkPage(
text: _content, text: _content,
)) ?? )) ??
''; _content;
setState(() {}); setState(() {});
}, },
child: Material( child: Material(
@ -792,11 +792,11 @@ class _PublishTaskPageState extends State<PublishTaskPage> {
.make(), .make(),
), ),
Expanded( Expanded(
child: '${_content == null ? '请输入任务备注' : _content}' child: '${_content == '' ? '请输入任务备注' : _content}'
.text .text
.size(28.sp) .size(28.sp)
.color(Colors.black .color(Colors.black
.withOpacity(_rewardType == 0 ? 0.25 : 0.85)) .withOpacity(_content == '' ? 0.25 : 0.85))
.make(), .make(),
), ),
20.wb, 20.wb,

Loading…
Cancel
Save