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