mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-11 20:00:12 +08:00
drop gif emote, static thumbnail gif
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -298,7 +298,7 @@ class _ArticlePageState extends CommonDynPageState<ArticlePage> {
|
||||
: null,
|
||||
imageUrl: ImageUtils.thumbnailUrl(
|
||||
pic.url,
|
||||
60,
|
||||
maxQuality: 60,
|
||||
),
|
||||
fadeInDuration: const Duration(
|
||||
milliseconds: 120,
|
||||
|
||||
@@ -73,7 +73,10 @@ class ArticleOpus extends StatelessWidget {
|
||||
width: width,
|
||||
height: height,
|
||||
memCacheWidth: width.cacheSize(context),
|
||||
imageUrl: ImageUtils.thumbnailUrl(card.url, 60),
|
||||
imageUrl: ImageUtils.thumbnailUrl(
|
||||
card.url,
|
||||
maxQuality: 60,
|
||||
),
|
||||
placeholder: (_, _) => const SizedBox.shrink(),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -62,7 +62,7 @@ Widget htmlRender({
|
||||
width: width,
|
||||
height: isEmote ? 22.0 : null,
|
||||
memCacheWidth: width.cacheSize(context),
|
||||
imageUrl: ImageUtils.thumbnailUrl(imgUrl, 60),
|
||||
imageUrl: ImageUtils.thumbnailUrl(imgUrl, maxQuality: 60),
|
||||
fadeInDuration: const Duration(milliseconds: 120),
|
||||
fadeOutDuration: const Duration(milliseconds: 120),
|
||||
placeholder: (context, url) => Image.asset(Assets.loading),
|
||||
|
||||
@@ -229,7 +229,7 @@ class OpusContent extends StatelessWidget {
|
||||
width: width,
|
||||
height: height,
|
||||
memCacheWidth: width.cacheSize(context),
|
||||
imageUrl: ImageUtils.thumbnailUrl(pic.url!, 60),
|
||||
imageUrl: ImageUtils.thumbnailUrl(pic.url!, maxQuality: 60),
|
||||
fadeInDuration: const Duration(milliseconds: 120),
|
||||
fadeOutDuration: const Duration(milliseconds: 120),
|
||||
placeholder: (_, _) => Image.asset(Assets.loading),
|
||||
|
||||
@@ -293,7 +293,7 @@ class _AudioPageState extends State<AudioPage> {
|
||||
WidgetSpan(
|
||||
alignment: .bottom,
|
||||
child: Image.asset(
|
||||
Assets.livingChart,
|
||||
Assets.livingStatic,
|
||||
width: 16,
|
||||
height: 16,
|
||||
cacheWidth: 16.cacheSize(
|
||||
@@ -337,7 +337,7 @@ class _AudioPageState extends State<AudioPage> {
|
||||
WidgetSpan(
|
||||
alignment: .bottom,
|
||||
child: Image.asset(
|
||||
Assets.livingChart,
|
||||
Assets.livingStatic,
|
||||
width: 16,
|
||||
height: 16,
|
||||
cacheWidth: 16.cacheSize(
|
||||
|
||||
@@ -107,7 +107,7 @@ class MedalWall extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const .only(left: 4),
|
||||
child: Image.asset(
|
||||
Assets.livingChart,
|
||||
Assets.livingStatic,
|
||||
height: 16,
|
||||
cacheHeight: 16.cacheSize(context),
|
||||
color: colorScheme.primary,
|
||||
|
||||
@@ -794,11 +794,13 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
spanChildren.add(
|
||||
WidgetSpan(
|
||||
child: NetworkImgLayer(
|
||||
src: emote.hasWebpUrl()
|
||||
? emote.webpUrl
|
||||
: emote.hasGifUrl()
|
||||
? emote.gifUrl
|
||||
: emote.url,
|
||||
/// remove gif
|
||||
src: emote.url,
|
||||
// src: emote.hasWebpUrl()
|
||||
// ? emote.webpUrl
|
||||
// : emote.hasGifUrl()
|
||||
// ? emote.gifUrl
|
||||
// : emote.url,
|
||||
type: ImageType.emote,
|
||||
width: size,
|
||||
height: size,
|
||||
|
||||
@@ -671,7 +671,9 @@ class ChatItem extends StatelessWidget {
|
||||
if (eInfos != null) {
|
||||
for (final e in eInfos!) {
|
||||
emojiMap[e.text] ??= {
|
||||
'url': e.hasGifUrl() ? e.gifUrl : e.url,
|
||||
/// remove gif
|
||||
'url': e.url,
|
||||
// 'url': e.hasGifUrl() ? e.gifUrl : e.url,
|
||||
'size': e.size * 22.0,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user