From e95d575e27e097f6c8494394d75df4718cb98f4e Mon Sep 17 00:00:00 2001 From: bluesea <307723040@qq.com> Date: Mon, 13 May 2024 15:17:32 +0800 Subject: [PATCH] s --- .../lib/pages/imgcategorypage/imgcategorypage_view.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wallpaper/lib/pages/imgcategorypage/imgcategorypage_view.dart b/wallpaper/lib/pages/imgcategorypage/imgcategorypage_view.dart index 3ba3d89..597aeaf 100644 --- a/wallpaper/lib/pages/imgcategorypage/imgcategorypage_view.dart +++ b/wallpaper/lib/pages/imgcategorypage/imgcategorypage_view.dart @@ -29,7 +29,7 @@ class ImgCategoryPageView extends GetView { //返回内容 Widget getBodyWidget(){ - return Obx(() => GridView.count( + return GridView.count( crossAxisCount: 2, mainAxisSpacing: 10, crossAxisSpacing: 10, @@ -37,8 +37,8 @@ class ImgCategoryPageView extends GetView { padding: const EdgeInsets.symmetric(horizontal: 10), children: List.generate(dataModel.data!.length, (index) { return getBodyItem(dataModel.data![index].previewThumb!,index); - }), - )); + }), + ); } Stack getBodyItem(String imgUrl,int index){ @@ -51,6 +51,8 @@ class ImgCategoryPageView extends GetView { image: imgUrl, fit: BoxFit.cover, ), + + ], ); }