mod: 专栏排版优化

This commit is contained in:
orz12
2024-04-04 10:33:18 +08:00
parent d700851c6c
commit e3fb4d4b28
3 changed files with 43 additions and 6 deletions

View File

@@ -22,6 +22,7 @@ class NetworkImgLayer extends StatelessWidget {
this.quality,
this.origAspectRatio,
this.semanticsLabel,
this.ignoreHeight,
});
final String? src;
@@ -33,6 +34,7 @@ class NetworkImgLayer extends StatelessWidget {
final int? quality;
final double? origAspectRatio;
final String? semanticsLabel;
final bool? ignoreHeight;
@override
Widget build(BuildContext context) {
@@ -65,7 +67,7 @@ class NetworkImgLayer extends StatelessWidget {
child: CachedNetworkImage(
imageUrl: imageUrl,
width: width,
height: height,
height: ignoreHeight == null || ignoreHeight == false? height:null,
memCacheWidth: memCacheWidth,
memCacheHeight: memCacheHeight,
fit: BoxFit.cover,