From 2d9a8938f693d0a83c99890477b97bc2e14bd06a Mon Sep 17 00:00:00 2001 From: laiiihz Date: Mon, 2 Nov 2020 11:25:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=99=BB=E9=99=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/style/app_style.dart | 1 + lib/ui/login/login_page.dart | 47 ++++++++++++++++++++++++++++++++++-- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/lib/style/app_style.dart b/lib/style/app_style.dart index 23205b1..f75a3d7 100644 --- a/lib/style/app_style.dart +++ b/lib/style/app_style.dart @@ -6,6 +6,7 @@ class AppStyle { //颜色,渐变主颜色和次级颜色 static const primaryColor = Color(0xFFFDCF12); static const minorColor = Color(0xFFFFDF5D); + static const secondaryColor = Color(0xFF3F8FFE); //字体 ///主字体颜色 diff --git a/lib/ui/login/login_page.dart b/lib/ui/login/login_page.dart index f39108a..5d7fad1 100644 --- a/lib/ui/login/login_page.dart +++ b/lib/ui/login/login_page.dart @@ -5,6 +5,7 @@ import 'package:aku_community_manager/tools/widget_tool.dart'; import 'package:aku_community_manager/ui/widgets/common/aku_back_button.dart'; import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart'; import 'package:aku_ui/common_widgets/aku_material_button.dart'; +import 'package:extended_text/extended_text.dart'; import 'package:flutter/material.dart'; import 'package:aku_community_manager/tools/screen_tool.dart'; @@ -83,8 +84,50 @@ class _LoginPageState extends State { ], ), bottom: Container( - padding: EdgeInsets.all(40), - child: Text(''), + height: 110.w, + alignment: Alignment.center, + padding: EdgeInsets.symmetric(vertical: 40.w), + child: ExtendedText.rich( + TextSpan( + style: TextStyle( + color: AppStyle.minorTextColor, + fontSize: 22.sp, + ), + children: [ + TextSpan( + text: '登录即代表您已同意我们的', + ), + ExtendedWidgetSpan( + child: GestureDetector( + child: Text( + '《服务协议》', + style: TextStyle( + color: AppStyle.secondaryColor, + fontSize: 22.sp, + ), + ), + ), + ), + TextSpan( + text: '和', + ), + ExtendedWidgetSpan( + child: GestureDetector( + child: Text( + '《隐私政策》', + style: TextStyle( + color: AppStyle.secondaryColor, + fontSize: 22.sp, + ), + ), + ), + ), + TextSpan( + text: '', + ), + ], + ), + ), ), ); }