mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-19 18:10:15 +08:00
@@ -257,17 +257,20 @@ 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,
|
||||||
height: height,
|
height: height,
|
||||||
width: maxWidth,
|
width: maxWidth,
|
||||||
memCacheWidth: maxWidth.cacheSize(context),
|
memCacheWidth: maxWidth.cacheSize(context),
|
||||||
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(
|
||||||
|
|||||||
Reference in New Issue
Block a user