Commit 6a0055b5 by tanghuan

登录界面增加隐私保障和用户协议的打开操作

1 parent 6b074f28
import 'package:appframe/config/routes.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class LoginPageAgreedWidget extends StatelessWidget { class LoginPageAgreedWidget extends StatelessWidget {
...@@ -15,6 +17,13 @@ class LoginPageAgreedWidget extends StatelessWidget { ...@@ -15,6 +17,13 @@ class LoginPageAgreedWidget extends StatelessWidget {
TextSpan( TextSpan(
text: '《隐私保障》', text: '《隐私保障》',
style: TextStyle(color: Color(0xFF7691FA), fontSize: 12), style: TextStyle(color: Color(0xFF7691FA), fontSize: 12),
recognizer: TapGestureRecognizer()
..onTap = () {
router.push(
'/link',
extra: {'url': 'https://bxr.banxiaoer.net/apps/privacysettings.html', 'title': '隐私设置'},
);
},
), ),
TextSpan( TextSpan(
text: '和', text: '和',
...@@ -23,10 +32,17 @@ class LoginPageAgreedWidget extends StatelessWidget { ...@@ -23,10 +32,17 @@ class LoginPageAgreedWidget extends StatelessWidget {
TextSpan( TextSpan(
text: '《用户协议》', text: '《用户协议》',
style: TextStyle(color: Color(0xFF7691FA), fontSize: 12), style: TextStyle(color: Color(0xFF7691FA), fontSize: 12),
recognizer: TapGestureRecognizer()
..onTap = () {
router.push(
'/link',
extra: {'url': 'https://bxr.banxiaoer.net/apps/useragreement.html', 'title': '用户协议'},
);
},
), ),
], ],
), ),
strutStyle: StrutStyle(height: 13.5/12), // 设置行高为13.5 strutStyle: StrutStyle(height: 13.5 / 12), // 设置行高为13.5
); );
} }
} }
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!