From 761674a7fc3097de9fe4b80aa47e86293ca406fa Mon Sep 17 00:00:00 2001 From: laiiihz Date: Fri, 29 Jan 2021 16:19:23 +0800 Subject: [PATCH] fix board detail page when title isEmpty --- lib/ui/community/notice/notice_detail_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/community/notice/notice_detail_page.dart b/lib/ui/community/notice/notice_detail_page.dart index 9f01b8e3..fe3dd637 100644 --- a/lib/ui/community/notice/notice_detail_page.dart +++ b/lib/ui/community/notice/notice_detail_page.dart @@ -28,7 +28,7 @@ class _NoticeDetailPageState extends State { ); Widget docView(String title, String path) { - if (title.isEmpty) return SizedBox(); + if (title?.isEmpty??true) return SizedBox(); return Container( margin: EdgeInsets.only(right: 113.w), alignment: Alignment.centerLeft,