s
This commit is contained in:
parent
80f5f0f5ef
commit
e95d575e27
@ -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,
|
||||
),
|
||||
|
||||
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user