diff --git a/lib/ui/function_and_service/task/publish_task_page.dart b/lib/ui/function_and_service/task/publish_task_page.dart index cc00f974..92c54c58 100644 --- a/lib/ui/function_and_service/task/publish_task_page.dart +++ b/lib/ui/function_and_service/task/publish_task_page.dart @@ -776,7 +776,7 @@ class _PublishTaskPageState extends State { _content = await Get.to(() => TaskRemarkPage( text: _content, )) ?? - ''; + _content; setState(() {}); }, child: Material( @@ -792,11 +792,11 @@ class _PublishTaskPageState extends State { .make(), ), Expanded( - child: '${_content == null ? '请输入任务备注' : _content}' + child: '${_content == '' ? '请输入任务备注' : _content}' .text .size(28.sp) .color(Colors.black - .withOpacity(_rewardType == 0 ? 0.25 : 0.85)) + .withOpacity(_content == '' ? 0.25 : 0.85)) .make(), ), 20.wb,