mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -162,8 +162,9 @@ class AuthorPanel extends StatelessWidget {
|
||||
children: [
|
||||
CachedNetworkImage(
|
||||
height: 32,
|
||||
imageUrl: item
|
||||
.modules.moduleAuthor.decorate['card_url'],
|
||||
imageUrl: (item.modules.moduleAuthor
|
||||
.decorate['card_url'] as String)
|
||||
.http2https,
|
||||
),
|
||||
if ((item.modules.moduleAuthor.decorate?['fan']
|
||||
?['num_str'] as String?)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:PiliPlus/common/widgets/image_save.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -106,7 +107,8 @@ class DynamicPanel extends StatelessWidget {
|
||||
child: CachedNetworkImage(
|
||||
width: 60,
|
||||
height: 60,
|
||||
imageUrl: item.modules.moduleAuthor.pendant['image'],
|
||||
imageUrl: Utils.thumbnailImgUrl(
|
||||
item.modules.moduleAuthor.pendant['image']),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:PiliPlus/models/common/tab_type.dart';
|
||||
import 'package:PiliPlus/models/model_hot_video_item.dart';
|
||||
import 'package:PiliPlus/pages/common/common_page.dart';
|
||||
import 'package:PiliPlus/pages/rank/view.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -42,7 +43,8 @@ class _HotPageState extends CommonPageState<HotPage, HotController>
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
CachedNetworkImage(width: 35, height: 35, imageUrl: iconUrl),
|
||||
CachedNetworkImage(
|
||||
width: 35, height: 35, imageUrl: Utils.thumbnailImgUrl(iconUrl)),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
title,
|
||||
|
||||
@@ -6,7 +6,6 @@ import 'package:PiliPlus/pages/live_room/send_dm_panel.dart';
|
||||
import 'package:PiliPlus/pages/live_room/widgets/chat.dart';
|
||||
import 'package:PiliPlus/pages/live_room/widgets/header_control.dart';
|
||||
import 'package:PiliPlus/services/service_locator.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
@@ -229,8 +228,9 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
fit: BoxFit.cover,
|
||||
width: Get.width,
|
||||
height: Get.height,
|
||||
imageUrl: _liveRoomController.roomInfoH5.value
|
||||
.roomInfo!.appBackground!.http2https,
|
||||
imageUrl: Utils.thumbnailImgUrl(
|
||||
_liveRoomController.roomInfoH5.value.roomInfo!
|
||||
.appBackground!),
|
||||
)
|
||||
: Image.asset(
|
||||
'assets/images/live/default_bg.webp',
|
||||
|
||||
@@ -100,7 +100,7 @@ class _EditProfilePageState extends State<EditProfilePage> {
|
||||
child: ClipOval(
|
||||
child: CachedNetworkImage(
|
||||
imageUrl:
|
||||
(loadingState.response['face'] as String).http2https,
|
||||
Utils.thumbnailImgUrl(loadingState.response['face']),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -86,7 +86,7 @@ class UserInfoCard extends StatelessWidget {
|
||||
);
|
||||
},
|
||||
child: CachedNetworkImage(
|
||||
imageUrl: imgUrl?.http2https ?? '',
|
||||
imageUrl: Utils.thumbnailImgUrl(imgUrl),
|
||||
width: double.infinity,
|
||||
height: 135,
|
||||
imageBuilder: (context, imageProvider) => Container(
|
||||
@@ -176,7 +176,8 @@ class UserInfoCard extends StatelessWidget {
|
||||
child: CachedNetworkImage(
|
||||
width: 18,
|
||||
height: 18,
|
||||
imageUrl: card.officialVerify!.icon!.http2https,
|
||||
imageUrl:
|
||||
Utils.thumbnailImgUrl(card.officialVerify!.icon!),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -412,7 +413,7 @@ class UserInfoCard extends StatelessWidget {
|
||||
),
|
||||
child: card.officialVerify?.icon?.isNotEmpty == true
|
||||
? CachedNetworkImage(
|
||||
imageUrl: card.officialVerify!.icon!.http2https,
|
||||
imageUrl: Utils.thumbnailImgUrl(card.officialVerify!.icon!),
|
||||
width: 22,
|
||||
height: 22,
|
||||
)
|
||||
@@ -478,7 +479,7 @@ class UserInfoCard extends StatelessWidget {
|
||||
child: CachedNetworkImage(
|
||||
width: 140,
|
||||
height: 140,
|
||||
imageUrl: card.pendant!.image!,
|
||||
imageUrl: Utils.thumbnailImgUrl(card.pendant!.image!),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -543,13 +544,13 @@ class UserInfoCard extends StatelessWidget {
|
||||
children: [
|
||||
if (isDark && card.prInfo?.iconNight?.isNotEmpty == true) ...[
|
||||
CachedNetworkImage(
|
||||
imageUrl: card.prInfo!.iconNight!,
|
||||
imageUrl: Utils.thumbnailImgUrl(card.prInfo!.iconNight!),
|
||||
height: 20,
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
] else if (card.prInfo?.icon?.isNotEmpty == true) ...[
|
||||
CachedNetworkImage(
|
||||
imageUrl: card.prInfo!.icon!,
|
||||
imageUrl: Utils.thumbnailImgUrl(card.prInfo!.icon!),
|
||||
height: 20,
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
@@ -636,7 +637,8 @@ class UserInfoCard extends StatelessWidget {
|
||||
child: CachedNetworkImage(
|
||||
width: 140,
|
||||
height: 140,
|
||||
imageUrl: card.pendant!.image!,
|
||||
imageUrl:
|
||||
Utils.thumbnailImgUrl(card.pendant!.image!),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:PiliPlus/models/search/search_trending/trending_list.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -52,7 +53,7 @@ class HotKeyword extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 4),
|
||||
child: CachedNetworkImage(
|
||||
imageUrl: i.icon!.http2https,
|
||||
imageUrl: Utils.thumbnailImgUrl(i.icon!),
|
||||
height: 15,
|
||||
),
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ import 'package:PiliPlus/common/widgets/refresh_indicator.dart';
|
||||
import 'package:PiliPlus/http/loading_state.dart';
|
||||
import 'package:PiliPlus/models/search/search_trending/trending_list.dart';
|
||||
import 'package:PiliPlus/pages/search_trending/controller.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -200,7 +200,7 @@ class _SearchTrendingPageState extends State<SearchTrendingPage> {
|
||||
if (item.icon?.isNotEmpty == true) ...[
|
||||
const SizedBox(width: 4),
|
||||
CachedNetworkImage(
|
||||
imageUrl: item.icon!.http2https,
|
||||
imageUrl: Utils.thumbnailImgUrl(item.icon!),
|
||||
height: 16,
|
||||
),
|
||||
] else if (item.showLiveIcon == true) ...[
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import 'package:PiliPlus/common/widgets/http_error.dart';
|
||||
import 'package:PiliPlus/http/msg.dart';
|
||||
import 'package:PiliPlus/http/user.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:easy_debounce/easy_throttle.dart';
|
||||
@@ -237,7 +236,7 @@ class _CreateFavPageState extends State<CreateFavPage> {
|
||||
return ClipRRect(
|
||||
borderRadius: BorderRadius.circular(6),
|
||||
child: CachedNetworkImage(
|
||||
imageUrl: _cover!.http2https,
|
||||
imageUrl: Utils.thumbnailImgUrl(_cover!),
|
||||
height: constraints.maxHeight,
|
||||
width: constraints.maxHeight * 16 / 9,
|
||||
fit: BoxFit.cover,
|
||||
|
||||
@@ -116,7 +116,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
children: [
|
||||
CachedNetworkImage(
|
||||
height: 38,
|
||||
imageUrl: replyItem.member.garbCardImage,
|
||||
imageUrl: replyItem.member.garbCardImage.http2https,
|
||||
),
|
||||
if (replyItem.member.hasGarbCardNumber())
|
||||
Text(
|
||||
@@ -178,7 +178,8 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
child: CachedNetworkImage(
|
||||
width: 52,
|
||||
height: 52,
|
||||
imageUrl: replyItem.member.garbPendantImage,
|
||||
imageUrl:
|
||||
Utils.thumbnailImgUrl(replyItem.member.garbPendantImage),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user