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, ), + + ], ); }