From 0a7b832da437984a73064ce65b6da1847baf4bdb Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Sat, 12 Mar 2022 16:47:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=8D=8F=E8=AE=AE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/login/login_page.dart | 9 +++++++-- lib/main_page.dart | 2 +- lib/setting/treaty_page.dart | 7 ------- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/lib/login/login_page.dart b/lib/login/login_page.dart index ae81fb31..47902eea 100644 --- a/lib/login/login_page.dart +++ b/lib/login/login_page.dart @@ -1001,8 +1001,13 @@ class _MyLoginPageState extends State with TickerProviderStateMixin { ), ), TextSpan( - text: S.of(context).privacy_policy2, - recognizer: tapGestureRecognizer, + // text: S.of(context).privacy_policy2, + text: "《一心回乡用户协议》", + recognizer: TapGestureRecognizer() + ..onTap = () { + Navigator.of(context) + .pushNamed('/router/user_service_page'); + }, style: TextStyle( fontSize: 11.sp, color: Color(0xFF32A060), diff --git a/lib/main_page.dart b/lib/main_page.dart index c2922ea6..ac6eff1c 100644 --- a/lib/main_page.dart +++ b/lib/main_page.dart @@ -106,7 +106,7 @@ class _MainPage extends State with WidgetsBindingObserver { // MainHomePage(), UnionPage(), // (Theme.of(context).platform == TargetPlatform.android) ? OrderPage() :CommunityPage(), - CommunityPage(), + OrderPage(), MinePage(), ]; diff --git a/lib/setting/treaty_page.dart b/lib/setting/treaty_page.dart index 68b8063a..4adba3f5 100644 --- a/lib/setting/treaty_page.dart +++ b/lib/setting/treaty_page.dart @@ -51,13 +51,6 @@ class _TreatyPage extends State { // margin: EdgeInsets.only(left: 20, right: 20, top: 10), // child: SingleChildScrollView( // physics: BouncingScrollPhysics(), - // // child: Column( - // // children: [ - // // WebView( - // // initialUrl: 'http://huixiang.lotus-wallet.com/Privacy.html', - // // ), - // // ], - // // ), // child: Column( // mainAxisAlignment: MainAxisAlignment.spaceEvenly, // crossAxisAlignment: CrossAxisAlignment.start,