公告文件下载常驻显示

hmxc
张萌 4 years ago
parent 09ee2c4c26
commit ca6e4745c7

@ -31,8 +31,8 @@ class _NoticeDetailPageState extends State<NoticeDetailPage> {
children: [], children: [],
); );
Widget docView(String? title, String? path) { Widget docView(String title, String? path) {
if (title?.isEmpty ?? true) return SizedBox(); // if (title?.isEmpty ?? true) return SizedBox();
return Container( return Container(
margin: EdgeInsets.only(right: 113.w), margin: EdgeInsets.only(right: 113.w),
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
@ -119,7 +119,7 @@ class _NoticeDetailPageState extends State<NoticeDetailPage> {
44.hb, 44.hb,
model!.content!.text.size(28.sp).make(), model!.content!.text.size(28.sp).make(),
43.hb, 43.hb,
docView(model!.fileDocName, model!.fileDocUrl), docView(model?.fileDocName ?? '', model!.fileDocUrl),
], ],
), ),
).material(color: Colors.white), ).material(color: Colors.white),

Loading…
Cancel
Save