Browse Source

我的页面新增入口

ios
王子贤 2 months ago
parent
commit
705660a37f
2 changed files with 64 additions and 4 deletions
  1. 8
      lib/pages/home/recommend_tab.dart
  2. 60
      lib/pages/mine/mine_page.dart

8
lib/pages/home/recommend_tab.dart

@ -276,9 +276,7 @@ class _RecommendTabState extends State<RecommendTab>
color: const Color.fromRGBO(144, 144, 144, 1),
fontWeight: FontWeight.w500
),
).onTap((){
Get.to(() => MatchmakerPage());
})
)
],
),
Wrap(
@ -292,7 +290,9 @@ class _RecommendTabState extends State<RecommendTab>
)
],
),
),
).onTap((){
Get.to(() => MatchmakerPage());
}),
],
),
),

60
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<MinePage> 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(

Loading…
Cancel
Save