From 53897f6fb32633659b3a2d4b46b1b688e1af556f Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Sun, 8 Nov 2020 17:43:51 +0800 Subject: [PATCH] feat(bitbucket): clarify app password closes #125 --- lib/screens/login.dart | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/lib/screens/login.dart b/lib/screens/login.dart index 1f0377e2..96f389ff 100644 --- a/lib/screens/login.dart +++ b/lib/screens/login.dart @@ -1,4 +1,5 @@ import 'package:flutter/cupertino.dart'; +import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:git_touch/models/auth.dart'; import 'package:git_touch/models/theme.dart'; @@ -247,6 +248,26 @@ class _LoginScreenState extends State { placeholder: 'App password', controller: _passwordController), SizedBox(height: 8), + Text.rich( + TextSpan(children: [ + TextSpan( + text: + 'Note: App password is different with the password. Follow ', + ), + TextSpan( + text: 'this guide', + style: + TextStyle(color: theme.palette.primary), + recognizer: TapGestureRecognizer() + ..onTap = () { + theme.push(context, + 'https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/'); + }, + ), + TextSpan(text: ' to create one.') + ]), + ), + SizedBox(height: 8), Text( 'GitTouch needs these permissions', style: TextStyle(