This commit is contained in:
bluesea 2024-05-13 15:17:32 +08:00
parent 80f5f0f5ef
commit e95d575e27

View File

@ -29,7 +29,7 @@ class ImgCategoryPageView extends GetView {
//
Widget getBodyWidget(){
return Obx(() => GridView.count(
return GridView.count(
crossAxisCount: 2,
mainAxisSpacing: 10,
crossAxisSpacing: 10,
@ -38,7 +38,7 @@ class ImgCategoryPageView extends GetView {
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,
),
],
);
}