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),