Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-20 18:28:46 +08:00
parent a2ef4e6f84
commit f9e28d1de9
5 changed files with 57 additions and 47 deletions

View File

@@ -53,7 +53,7 @@ class FollowItem extends StatelessWidget {
child: Icon( child: Icon(
Icons.offline_bolt, Icons.offline_bolt,
color: item.officialVerify?['type'] == 0 color: item.officialVerify?['type'] == 0
? Colors.yellow ? const Color(0xFFFFCC00)
: Colors.lightBlueAccent, : Colors.lightBlueAccent,
size: 14, size: 14,
), ),

View File

@@ -109,47 +109,49 @@ class UserInfoCard extends StatelessWidget {
_buildLeft(BuildContext context) => [ _buildLeft(BuildContext context) => [
Padding( Padding(
padding: const EdgeInsets.symmetric(horizontal: 20), padding: const EdgeInsets.symmetric(horizontal: 20),
child: FittedBox( child: Wrap(
child: Row( spacing: 8,
children: [ runSpacing: 8,
GestureDetector( crossAxisAlignment: WrapCrossAlignment.center,
onTap: () => Utils.copyText(card.name ?? ''), children: [
child: Text( GestureDetector(
card.name ?? '', onTap: () => Utils.copyText(card.name!),
style: TextStyle( child: Text(
height: 1, card.name!,
fontSize: 17, style: TextStyle(
fontWeight: FontWeight.bold, height: 1,
color: (card.vip?.vipStatus ?? -1) > 0 && fontSize: 17,
card.vip?.vipType == 2 fontWeight: FontWeight.bold,
? context.vipColor color: (card.vip?.vipStatus ?? -1) > 0 &&
: null, card.vip?.vipType == 2
), ? context.vipColor
: null,
), ),
), ),
const SizedBox(width: 8), ),
Image.asset( Image.asset(
'assets/images/lv/lv${card.levelInfo?.identity == 2 ? '6_s' : card.levelInfo?.currentLevel}.png', 'assets/images/lv/lv${card.levelInfo?.identity == 2 ? '6_s' : card.levelInfo?.currentLevel}.png',
height: 11, height: 11,
semanticLabel: '等级${card.levelInfo?.currentLevel}', semanticLabel: '等级${card.levelInfo?.currentLevel}',
),
if (card.vip?.vipStatus == 1)
CachedNetworkImage(
imageUrl:
Utils.thumbnailImgUrl(card.vip!.label!.image!.http2https),
height: 20,
placeholder: (context, url) {
return const SizedBox.shrink();
},
), ),
if (card.vip?.vipStatus == 1) ...[ if (card.nameplate?.image?.isNotEmpty == true)
const SizedBox(width: 8), CachedNetworkImage(
CachedNetworkImage( imageUrl: Utils.thumbnailImgUrl(card.nameplate!.image!),
imageUrl: Utils.thumbnailImgUrl( height: 20,
card.vip!.label!.image!.http2https), placeholder: (context, url) {
height: 20, return const SizedBox.shrink();
), },
], ),
if (card.nameplate?.image?.isNotEmpty == true) ...[ ],
const SizedBox(width: 8),
CachedNetworkImage(
imageUrl: Utils.thumbnailImgUrl(card.nameplate!.image!),
height: 20,
),
],
],
),
), ),
), ),
if (card.officialVerify?.desc?.isNotEmpty == true) if (card.officialVerify?.desc?.isNotEmpty == true)

View File

@@ -47,7 +47,7 @@ class SearchUserItem extends StatelessWidget {
child: Icon( child: Icon(
Icons.offline_bolt, Icons.offline_bolt,
color: item.officialVerify?['type'] == 0 color: item.officialVerify?['type'] == 0
? Colors.yellow ? const Color(0xFFFFCC00)
: Colors.lightBlueAccent, : Colors.lightBlueAccent,
size: 14, size: 14,
), ),

View File

@@ -335,7 +335,7 @@ class _VideoInfoState extends State<VideoInfo> {
'official_verify'] 'official_verify']
?['type'] == ?['type'] ==
0 0
? Colors.yellow ? const Color(0xFFFFCC00)
: Colors.lightBlueAccent, : Colors.lightBlueAccent,
size: 14, size: 14,
), ),
@@ -450,7 +450,7 @@ class _VideoInfoState extends State<VideoInfo> {
.official?[ .official?[
'type'] == 'type'] ==
0 0
? Colors.yellow ? const Color(0xFFFFCC00)
: Colors.lightBlueAccent, : Colors.lightBlueAccent,
size: 14, size: 14,
), ),

View File

@@ -216,7 +216,7 @@ class ReplyItemGrpc extends StatelessWidget {
), ),
child: const Icon( child: const Icon(
Icons.offline_bolt, Icons.offline_bolt,
color: Colors.yellow, color: Color(0xFFFFCC00),
size: 14, size: 14,
semanticLabel: "认证个人", semanticLabel: "认证个人",
), ),
@@ -838,10 +838,14 @@ class ReplyItemGrpc extends StatelessWidget {
[ [
if (content.url[matchStr]?.hasPrefixIcon() == true) ...[ if (content.url[matchStr]?.hasPrefixIcon() == true) ...[
WidgetSpan( WidgetSpan(
child: Image.network( child: CachedNetworkImage(
Utils.thumbnailImgUrl(content.url[matchStr]!.prefixIcon), imageUrl: Utils.thumbnailImgUrl(
content.url[matchStr]!.prefixIcon),
height: 19, height: 19,
color: Theme.of(context).colorScheme.primary, color: Theme.of(context).colorScheme.primary,
placeholder: (context, url) {
return const SizedBox.shrink();
},
), ),
) )
], ],
@@ -953,10 +957,14 @@ class ReplyItemGrpc extends StatelessWidget {
[ [
if (content.url[patternStr]?.hasPrefixIcon() == true) ...[ if (content.url[patternStr]?.hasPrefixIcon() == true) ...[
WidgetSpan( WidgetSpan(
child: Image.network( child: CachedNetworkImage(
Utils.thumbnailImgUrl(content.url[patternStr]!.prefixIcon), imageUrl: Utils.thumbnailImgUrl(
content.url[patternStr]!.prefixIcon),
height: 19, height: 19,
color: Theme.of(context).colorScheme.primary, color: Theme.of(context).colorScheme.primary,
placeholder: (context, url) {
return const SizedBox.shrink();
},
), ),
) )
], ],