From c6c4a75984b94f9a23ad70131300256d54f410d5 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 8 Dec 2025 19:11:00 -0800 Subject: [PATCH] fix(mobile-app): remove cacheWidth/cacheHeight to fix avatar blur on high-DPI screens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../lib/features/mining/presentation/pages/mining_page.dart | 2 -- .../lib/features/profile/presentation/pages/profile_page.dart | 2 -- 2 files changed, 4 deletions(-) diff --git a/frontend/mobile-app/lib/features/mining/presentation/pages/mining_page.dart b/frontend/mobile-app/lib/features/mining/presentation/pages/mining_page.dart index 76158791..a5a40438 100644 --- a/frontend/mobile-app/lib/features/mining/presentation/pages/mining_page.dart +++ b/frontend/mobile-app/lib/features/mining/presentation/pages/mining_page.dart @@ -416,8 +416,6 @@ class _MiningPageState extends ConsumerState { width: 80, height: 80, fit: BoxFit.cover, - cacheWidth: 160, // 2x 分辨率缓存,提升性能 - cacheHeight: 160, gaplessPlayback: true, // 防止图片切换时闪烁 errorBuilder: (context, error, stackTrace) { // 本地文件加载失败,尝试网络URL diff --git a/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart b/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart index 7d9b3169..4a56b262 100644 --- a/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart +++ b/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart @@ -397,8 +397,6 @@ class _ProfilePageState extends ConsumerState { width: 80, height: 80, fit: BoxFit.cover, - cacheWidth: 160, // 2x 分辨率缓存,提升性能 - cacheHeight: 160, gaplessPlayback: true, // 防止图片切换时闪烁 errorBuilder: (context, error, stackTrace) { // 本地文件加载失败,尝试网络URL