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(
Icons.offline_bolt,
color: item.officialVerify?['type'] == 0
? Colors.yellow
? const Color(0xFFFFCC00)
: Colors.lightBlueAccent,
size: 14,
),

View File

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

View File

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

View File

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

View File

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