From ca6e4745c7498d7234390bfb78d1eb3ad7558047 Mon Sep 17 00:00:00 2001 From: zhangmeng <494089941@qq.com> Date: Tue, 25 May 2021 12:02:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=91=8A=E6=96=87=E4=BB=B6=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E5=B8=B8=E9=A9=BB=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/community/notice/notice_detail_page.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ui/community/notice/notice_detail_page.dart b/lib/ui/community/notice/notice_detail_page.dart index b8edea71..755fe2ae 100644 --- a/lib/ui/community/notice/notice_detail_page.dart +++ b/lib/ui/community/notice/notice_detail_page.dart @@ -31,8 +31,8 @@ class _NoticeDetailPageState extends State { children: [], ); - Widget docView(String? title, String? path) { - if (title?.isEmpty ?? true) return SizedBox(); + Widget docView(String title, String? path) { + // if (title?.isEmpty ?? true) return SizedBox(); return Container( margin: EdgeInsets.only(right: 113.w), alignment: Alignment.centerLeft, @@ -119,7 +119,7 @@ class _NoticeDetailPageState extends State { 44.hb, model!.content!.text.size(28.sp).make(), 43.hb, - docView(model!.fileDocName, model!.fileDocUrl), + docView(model?.fileDocName ?? '', model!.fileDocUrl), ], ), ).material(color: Colors.white),