首页ui布局

This commit is contained in:
bluesea 2024-05-13 12:09:41 +08:00
parent 8fe3bcaf48
commit 723d06cfcd

View File

@ -54,17 +54,26 @@ class HomePageView extends GetView <HomePageController> {
image: controller.typeList[index].data![0].previewThumb!,
fit: BoxFit.cover,
),
Align(
alignment: Alignment.bottomCenter,
child: Text(
controller.typeList[index].name!,
style: const TextStyle(
color: Colors.white
),
Align(
alignment: Alignment.bottomCenter,
child: Container(
color: Colors.black,
height: 30,
width: double.infinity,
child: Align(
alignment: Alignment.center,
child: Text(
controller.typeList[index].name!,
style: const TextStyle(
color: Colors.white
),
),
),
),
),
),
],
);
}),