Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-04 17:45:59 +08:00
parent 8c8eb18aed
commit 46ce01d76f

View File

@@ -257,8 +257,8 @@ class OpusContent extends StatelessWidget {
.toList(), .toList(),
); );
} }
case 3 when (element.line?.pic != null): case 3:
final pic = element.line!.pic!; if (element.line?.pic case final pic?) {
final height = pic.height?.toDouble(); final height = pic.height?.toDouble();
return CachedNetworkImage( return CachedNetworkImage(
fit: .contain, fit: .contain,
@@ -268,6 +268,9 @@ class OpusContent extends StatelessWidget {
imageUrl: ImageUtils.thumbnailUrl(pic.url!), imageUrl: ImageUtils.thumbnailUrl(pic.url!),
placeholder: (_, _) => const SizedBox.shrink(), placeholder: (_, _) => const SizedBox.shrink(),
); );
} else {
return const Divider();
}
case 5 when (element.list?.items?.isNotEmpty == true): case 5 when (element.list?.items?.isNotEmpty == true):
return Text.rich( return Text.rich(
TextSpan( TextSpan(