feat(bitbucket): clarify app password

closes #125
This commit is contained in:
Rongjian Zhang 2020-11-08 17:43:51 +08:00
parent 979e91378b
commit 53897f6fb3
1 changed files with 21 additions and 0 deletions

View File

@ -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<LoginScreen> {
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(