Commit dd0d15c1 authored by netyouli's avatar netyouli

优化高清大图显示

parent 651590fe
......@@ -43,6 +43,8 @@ class ImageSquareListView extends StatelessWidget {
child: CachedNetworkImage(
fit: BoxFit.cover,
height: index % 2 == 0 ? 260 : 200,
memCacheHeight: index % 2 == 0 ? 260 * 2 : 200 * 2,
maxHeightDiskCache: index % 2 == 0 ? 260 * 2 : 200 * 2,
imageUrl: controller.squareImgaes.value[index].minioUrl ?? "",
placeholder: (context, url) => Container(
alignment: Alignment.center,
......
......@@ -82,6 +82,11 @@ class MyWorkPage extends GetView<MyWorkController> {
child: CachedNetworkImage(
fit: BoxFit.cover,
height: index % 2 == 0 ? 260 : 200,
// width: (Get.width - 20) / 2.0,
// memCacheWidth: (Get.width - 20) ~/ 2.0,
memCacheHeight: index % 2 == 0 ? 260 * 2 : 200 * 2,
// maxWidthDiskCache: (Get.width - 20) ~/ 2.0,
maxHeightDiskCache: index % 2 == 0 ? 260 * 2 : 200 * 2,
imageUrl: controller.workImages.value[index].minioUrl ?? "",
placeholder: (context, url) => Container(
alignment: Alignment.center,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment