refactor: reply item

This commit is contained in:
bggRGjQaUbCoE
2024-10-11 18:03:20 +08:00
parent 39a63cf5ce
commit b3f86b1d94
8 changed files with 1483 additions and 72 deletions

View File

@@ -32,8 +32,9 @@ class OverlayPop extends StatelessWidget {
NetworkImgLayer(
width: imgWidth,
height: imgWidth / StyleString.aspectRatio,
src: (videoItem as card.Card?)?.smallCoverV5.base.cover ??
videoItem.pic,
src: videoItem is card.Card
? (videoItem as card.Card).smallCoverV5.base.cover
: videoItem.pic,
quality: 100,
),
Positioned(
@@ -68,8 +69,9 @@ class OverlayPop extends StatelessWidget {
children: [
Expanded(
child: Text(
(videoItem as card.Card?)?.smallCoverV5.base.title ??
videoItem.title,
videoItem is card.Card
? (videoItem as card.Card).smallCoverV5.base.title
: videoItem.title,
),
),
const SizedBox(width: 4),
@@ -78,8 +80,9 @@ class OverlayPop extends StatelessWidget {
onPressed: () async {
await DownloadUtils.downloadImg(
context,
(videoItem as card.Card?)?.smallCoverV5.base.cover ??
(videoItem.pic != null
videoItem is card.Card
? (videoItem as card.Card).smallCoverV5.base.cover
: (videoItem.pic != null
? videoItem.pic as String
: videoItem.cover as String),
);