chore: codeberg login note (#166)

closes #164
This commit is contained in:
Shreyas Thirumalai 2021-01-19 18:36:34 +05:30 committed by GitHub
parent d826107621
commit cb9bc89778
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 3 deletions

View File

@ -302,8 +302,23 @@ class _LoginScreenState extends State<LoginScreen> {
_domainController.text = 'https://gitea.com';
final result = await theme.showConfirm(
context,
Column(
children: [
_buildPopup(context, showDomain: true),
);
Text.rich(TextSpan(children: [
TextSpan(
text:
'Note: To login with Codeberg change the domain name to: ',
),
])),
SizedBox(height: 8),
Text(
'https://codeberg.org',
style: TextStyle(
fontSize: 16, color: theme.palette.primary),
),
],
));
if (result == true) {
try {
await auth.loginToGitea(