From 263a1eac5c42ed5a3f5c5c0ca16c644e729ed661 Mon Sep 17 00:00:00 2001 From: datang Date: Thu, 24 Mar 2022 11:08:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A0=E6=AD=A3=E5=8F=91=E5=B8=83=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=A4=87=E6=B3=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/function_and_service/task/publish_task_page.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,