s
This commit is contained in:
parent
638824974d
commit
7b77d75a4c
@ -64,27 +64,27 @@ class HomePageView extends GetView <HomePageController> {
|
|||||||
Material(
|
Material(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Get.to(ImgCategoryPageView(stitle: title,dataModel: controller.typeList[index]));
|
Get.to(ImgCategoryPageView(stitle: title,dataModel: controller.typeList[index]));
|
||||||
},
|
},
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.bottomCenter,
|
alignment: Alignment.bottomCenter,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Colors.black.withAlpha(160),
|
color: Colors.black.withAlpha(160),
|
||||||
height: 30,
|
height: 30,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Text(
|
child: Text(
|
||||||
title,
|
title,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.white
|
color: Colors.white
|
||||||
),
|
),
|
||||||
|
|
||||||
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@ -52,30 +52,40 @@ class ImgCategoryPageView extends GetView {
|
|||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
),
|
),
|
||||||
|
|
||||||
Align(
|
Material(
|
||||||
alignment: Alignment.bottomCenter,
|
color: Colors.transparent,
|
||||||
child: Container(
|
child: InkWell(
|
||||||
color: Colors.black.withAlpha(160),
|
onTap: () {
|
||||||
height: 40,
|
print("查看大图...");
|
||||||
width: double.infinity,
|
// Get.to(ImgCategoryPageView(stitle: title,dataModel: controller.typeList[index]));
|
||||||
child: Row(
|
},
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
child: Align(
|
||||||
mainAxisSize: MainAxisSize.max,
|
alignment: Alignment.bottomCenter,
|
||||||
// 交叉轴的布局方式,对于column来说就是水平方向的布局方式
|
child: Container(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
color: Colors.black.withAlpha(160),
|
||||||
children: [
|
height: 40,
|
||||||
IconButton(onPressed:() {
|
width: double.infinity,
|
||||||
print("download....");
|
child: Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
mainAxisSize: MainAxisSize.max,
|
||||||
|
// 交叉轴的布局方式,对于column来说就是水平方向的布局方式
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
IconButton(onPressed:() {
|
||||||
|
print("download....");
|
||||||
|
|
||||||
}, icon: Icon(Icons.download),color: Colors.white,),
|
}, icon: Icon(Icons.download),color: Colors.white,),
|
||||||
IconButton(onPressed:() {
|
IconButton(onPressed:() {
|
||||||
print("设置壁纸");
|
print("设置壁纸");
|
||||||
|
|
||||||
|
}, icon: Icon(Icons.wallpaper),color: Colors.white,),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
}, icon: Icon(Icons.wallpaper),color: Colors.white,),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user