From b579588881fcf3dc567a477d473e5bcc3c87f066 Mon Sep 17 00:00:00 2001 From: bluesea <307723040@qq.com> Date: Mon, 13 May 2024 14:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/pages/homepage/homepage_view.dart | 33 +++++++++++++------ 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/wallpaper/lib/pages/homepage/homepage_view.dart b/wallpaper/lib/pages/homepage/homepage_view.dart index cbb07cd..e6ef8f6 100644 --- a/wallpaper/lib/pages/homepage/homepage_view.dart +++ b/wallpaper/lib/pages/homepage/homepage_view.dart @@ -54,8 +54,15 @@ class HomePageView extends GetView { image: controller.typeList[index].data![0].previewThumb!, fit: BoxFit.cover, ), - - Align( + + + Material( + color: Colors.transparent, + child: InkWell( + onTap: () { + print("dsfadf"); + }, + child: Align( alignment: Alignment.bottomCenter, child: Container( color: Colors.black.withAlpha(160), @@ -73,17 +80,20 @@ class HomePageView extends GetView { ), ), ), + ), + ), + - ], - ); - }), - )); + ], + ); + }), + )); } //初始化顶部数据 SizedBox getHeaderWidget(BuildContext context){ final size = MediaQuery.of(context).size; - final cw = 80.0; + const cw = 80.0; return SizedBox( width: size.width, @@ -123,10 +133,10 @@ class HomePageView extends GetView { // border: Border.all(color: Colors.black12, width: 0.5), // borderRadius: BorderRadius.all(Radius.circular(5.0))), color:Colors.red, - padding: EdgeInsets.all(5.0), + padding: const EdgeInsets.all(5.0), // margin: EdgeInsets.fromLTRB(3.0, 0.0, 3.0, 0.0), child: ConstrainedBox( - constraints: BoxConstraints(maxWidth: 100.0,), + constraints: const BoxConstraints(maxWidth: 100.0,), child: Text( title, softWrap: true, @@ -134,4 +144,7 @@ class HomePageView extends GetView { )); } -} \ No newline at end of file +} + + +