@@ -64,31 +64,31 @@ class AudioPageHeaderHtmlDescription extends StatelessWidget {
64
64
],
65
65
),
66
66
),
67
- child: SizedBox (
68
- child: Html (
69
- data: description,
70
- onAnchorTap: (url, attributes, element) {
71
- if (url == null ) return ;
72
- launchUrl (Uri .parse (url));
73
- },
74
- style: {
75
- 'img' : Style (display: Display .none),
76
- 'body' : Style (
77
- height: Height .auto (),
78
- margin: Margins .zero,
79
- padding: HtmlPaddings .zero,
80
- textOverflow: TextOverflow .ellipsis,
81
- maxLines: 4 ,
82
- textAlign: TextAlign .center,
83
- fontSize: FontSize (
84
- descriptionStyle? .fontSize ?? 10 ,
85
- ),
86
- fontWeight: descriptionStyle? .fontWeight,
87
- fontFamily: descriptionStyle? .fontFamily,
67
+ child: description == null
68
+ ? const SizedBox .shrink ()
69
+ : Html (
70
+ data: description,
71
+ onAnchorTap: (url, attributes, element) {
72
+ if (url == null ) return ;
73
+ launchUrl (Uri .parse (url));
74
+ },
75
+ style: {
76
+ 'img' : Style (display: Display .none),
77
+ 'body' : Style (
78
+ height: Height .auto (),
79
+ margin: Margins .zero,
80
+ padding: HtmlPaddings .zero,
81
+ textOverflow: TextOverflow .ellipsis,
82
+ maxLines: 4 ,
83
+ textAlign: TextAlign .center,
84
+ fontSize: FontSize (
85
+ descriptionStyle? .fontSize ?? 10 ,
86
+ ),
87
+ fontWeight: descriptionStyle? .fontWeight,
88
+ fontFamily: descriptionStyle? .fontFamily,
89
+ ),
90
+ },
88
91
),
89
- },
90
- ),
91
- ),
92
92
),
93
93
),
94
94
);
0 commit comments