mod: handle http2https

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-29 15:16:33 +08:00
parent 85733e071b
commit a6cb49fd02
14 changed files with 54 additions and 39 deletions

View File

@@ -78,7 +78,7 @@ class UserInfoCard extends StatelessWidget {
);
},
child: CachedNetworkImage(
imageUrl: imgUrl ?? '',
imageUrl: imgUrl?.http2https ?? '',
width: double.infinity,
height: 135,
imageBuilder: (context, imageProvider) => Container(
@@ -128,14 +128,14 @@ class UserInfoCard extends StatelessWidget {
if (card.vip?.vipStatus == 1) ...[
const SizedBox(width: 8),
Image.network(
card.vip!.label!.image!,
card.vip!.label!.image!.http2https,
height: 20,
),
],
if (card.nameplate?.image?.isNotEmpty == true) ...[
const SizedBox(width: 8),
Image.network(
card.nameplate!.image!,
card.nameplate!.image!.http2https,
height: 20,
),
],
@@ -191,7 +191,7 @@ class UserInfoCard extends StatelessWidget {
child: CachedNetworkImage(
width: 18,
height: 18,
imageUrl: card.officialVerify!.icon!,
imageUrl: card.officialVerify!.icon!.http2https,
),
),
),