diff --git a/lib/pages/follow/widgets/follow_item.dart b/lib/pages/follow/widgets/follow_item.dart index a5beca12..43f2b7d0 100644 --- a/lib/pages/follow/widgets/follow_item.dart +++ b/lib/pages/follow/widgets/follow_item.dart @@ -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, ), diff --git a/lib/pages/member/widget/user_info_card.dart b/lib/pages/member/widget/user_info_card.dart index 3d00202e..05423cd5 100644 --- a/lib/pages/member/widget/user_info_card.dart +++ b/lib/pages/member/widget/user_info_card.dart @@ -109,47 +109,49 @@ class UserInfoCard extends StatelessWidget { _buildLeft(BuildContext context) => [ Padding( padding: const EdgeInsets.symmetric(horizontal: 20), - child: FittedBox( - child: Row( - children: [ - GestureDetector( - onTap: () => Utils.copyText(card.name ?? ''), - child: Text( - card.name ?? '', - style: TextStyle( - height: 1, - fontSize: 17, - fontWeight: FontWeight.bold, - color: (card.vip?.vipStatus ?? -1) > 0 && - card.vip?.vipType == 2 - ? context.vipColor - : null, - ), + child: Wrap( + spacing: 8, + runSpacing: 8, + crossAxisAlignment: WrapCrossAlignment.center, + children: [ + GestureDetector( + onTap: () => Utils.copyText(card.name!), + child: Text( + card.name!, + style: TextStyle( + height: 1, + fontSize: 17, + fontWeight: FontWeight.bold, + color: (card.vip?.vipStatus ?? -1) > 0 && + card.vip?.vipType == 2 + ? context.vipColor + : null, ), ), - 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}', + ), + 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) + CachedNetworkImage( + imageUrl: + Utils.thumbnailImgUrl(card.vip!.label!.image!.http2https), + height: 20, + placeholder: (context, url) { + return const SizedBox.shrink(); + }, ), - if (card.vip?.vipStatus == 1) ...[ - const SizedBox(width: 8), - CachedNetworkImage( - imageUrl: Utils.thumbnailImgUrl( - card.vip!.label!.image!.http2https), - height: 20, - ), - ], - if (card.nameplate?.image?.isNotEmpty == true) ...[ - const SizedBox(width: 8), - CachedNetworkImage( - imageUrl: Utils.thumbnailImgUrl(card.nameplate!.image!), - height: 20, - ), - ], - ], - ), + 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) diff --git a/lib/pages/search_panel/user/widgets/item.dart b/lib/pages/search_panel/user/widgets/item.dart index d60ffc4b..623cd234 100644 --- a/lib/pages/search_panel/user/widgets/item.dart +++ b/lib/pages/search_panel/user/widgets/item.dart @@ -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, ), diff --git a/lib/pages/video/detail/introduction/view.dart b/lib/pages/video/detail/introduction/view.dart index e9268fd3..de370b6c 100644 --- a/lib/pages/video/detail/introduction/view.dart +++ b/lib/pages/video/detail/introduction/view.dart @@ -335,7 +335,7 @@ class _VideoInfoState extends State { 'official_verify'] ?['type'] == 0 - ? Colors.yellow + ? const Color(0xFFFFCC00) : Colors.lightBlueAccent, size: 14, ), @@ -450,7 +450,7 @@ class _VideoInfoState extends State { .official?[ 'type'] == 0 - ? Colors.yellow + ? const Color(0xFFFFCC00) : Colors.lightBlueAccent, size: 14, ), diff --git a/lib/pages/video/detail/reply/widgets/reply_item_grpc.dart b/lib/pages/video/detail/reply/widgets/reply_item_grpc.dart index 72b8d756..d2b60069 100644 --- a/lib/pages/video/detail/reply/widgets/reply_item_grpc.dart +++ b/lib/pages/video/detail/reply/widgets/reply_item_grpc.dart @@ -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(); + }, ), ) ],