diff --git a/lib/pages/home/recommend_tab.dart b/lib/pages/home/recommend_tab.dart index 61d4c66..b8ca852 100644 --- a/lib/pages/home/recommend_tab.dart +++ b/lib/pages/home/recommend_tab.dart @@ -276,9 +276,7 @@ class _RecommendTabState extends State color: const Color.fromRGBO(144, 144, 144, 1), fontWeight: FontWeight.w500 ), - ).onTap((){ - Get.to(() => MatchmakerPage()); - }) + ) ], ), Wrap( @@ -292,7 +290,9 @@ class _RecommendTabState extends State ) ], ), - ), + ).onTap((){ + Get.to(() => MatchmakerPage()); + }), ], ), ), diff --git a/lib/pages/mine/mine_page.dart b/lib/pages/mine/mine_page.dart index 05890a7..70236b4 100644 --- a/lib/pages/mine/mine_page.dart +++ b/lib/pages/mine/mine_page.dart @@ -15,6 +15,7 @@ import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; import 'package:get/get.dart'; import '../discover/visitor_list_page.dart'; +import 'open_webview.dart'; class MinePage extends StatefulWidget { const MinePage({super.key}); @@ -278,6 +279,65 @@ class _MinePageState extends State with AutomaticKeepAliveClientMixin{ ), ), SizedBox(height: 12.w,), + Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.all(Radius.circular(9.w)), + color: Colors.white + ), + child: Column( + children: [ + Container( + height: 48.w, + padding: EdgeInsets.symmetric(horizontal: 16.w), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + "用户协议", + style: TextStyle( + fontSize: 14.w, + fontWeight: FontWeight.w500, + color: Colors.black + ), + ), + Image.asset( + Assets.imagesArrow, + width: 4.w, + height: 8.w, + ) + ], + ), + ).onTap((){ + Get.to(() => OpenWebView(url: "https://www.quzhaoqin.com/privacy.html")); + }), + Container( + height: 48.w, + padding: EdgeInsets.symmetric(horizontal: 16.w), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + "隐私政策", + style: TextStyle( + fontSize: 14.w, + fontWeight: FontWeight.w500, + color: Colors.black + ), + ), + Image.asset( + Assets.imagesArrow, + width: 4.w, + height: 8.w, + ) + ], + ), + ).onTap((){ + Get.to(() => OpenWebView(url: "https://www.quzhaoqin.com/information.html")); + }), + ], + ), + ), + SizedBox(height: 12.w,), ClipRRect( borderRadius: BorderRadius.all(Radius.circular(9.w)), child: Column(