feat: 根据设备像素比调整画廊列表卡片和缩略图组件的尺寸计算,改善适配效果

This commit is contained in:
2025-03-08 20:53:11 +08:00
parent 98b8ca476f
commit a80278dffd
2 changed files with 3 additions and 3 deletions

View File

@@ -311,8 +311,8 @@ class _Thumbnail extends State<Thumbnail> {
child: timg)
: timg;
return SizedBox(
width: widget.width * dpr,
height: widget.height * dpr,
width: widget.width / dpr,
height: widget.height / dpr,
child: isLoading
? const Center(child: CircularProgressIndicator())
: _data != null