From 723d06cfcd011083287fca50cc9f58bdaca60eff Mon Sep 17 00:00:00 2001 From: bluesea <307723040@qq.com> Date: Mon, 13 May 2024 12:09:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5ui=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/pages/homepage/homepage_view.dart | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/wallpaper/lib/pages/homepage/homepage_view.dart b/wallpaper/lib/pages/homepage/homepage_view.dart index 8815a4b..7eba24f 100644 --- a/wallpaper/lib/pages/homepage/homepage_view.dart +++ b/wallpaper/lib/pages/homepage/homepage_view.dart @@ -54,17 +54,26 @@ class HomePageView extends GetView { 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 + ), + + ), + ), + ), ), - ), - + ], ); }),