From cb9bc89778cca7f75bfa49fa468f1fb188f02257 Mon Sep 17 00:00:00 2001 From: Shreyas Thirumalai Date: Tue, 19 Jan 2021 18:36:34 +0530 Subject: [PATCH] chore: codeberg login note (#166) closes #164 --- lib/screens/login.dart | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/lib/screens/login.dart b/lib/screens/login.dart index ee41669..9e2c896 100644 --- a/lib/screens/login.dart +++ b/lib/screens/login.dart @@ -301,9 +301,24 @@ class _LoginScreenState extends State { onTap: () async { _domainController.text = 'https://gitea.com'; final result = await theme.showConfirm( - context, - _buildPopup(context, showDomain: true), - ); + 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(