π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][locker] Update onboarding and recovery key UI (#11149)
aman-pilot5de58a552081
diff --git a/mobile/apps/locker/changes/onboarding-recovery-key-ui.md b/mobile/apps/locker/changes/onboarding-recovery-key-ui.mdnew file mode 100644index 0000000000..1d7fa1ab98--- /dev/null+++ b/mobile/apps/locker/changes/onboarding-recovery-key-ui.md@@ -0,0 +1 @@+Updated Locker onboarding and recovery key UI.diff --git a/mobile/apps/locker/lib/l10n/app_en.arb b/mobile/apps/locker/lib/l10n/app_en.arbindex 691825db3b..4e3851afe6 100644--- a/mobile/apps/locker/lib/l10n/app_en.arb+++ b/mobile/apps/locker/lib/l10n/app_en.arb@@ -842,6 +842,8 @@},"locker": "Locker","loginToEnteAccount": "Log in to your Ente account",+ "createAnEnteAccount": "Create an Ente account",+ "loginToExistingAccount": "Login to existing account","unlockLockerNewUserTitle": "Join Ente to use Locker","unlockLockerNewUserBody": "Locker is currently available only to existing Ente users. You can create an account on Ente Photos to use Locker.","checkoutEntePhotos": "Checkout Ente Photos",diff --git a/mobile/apps/locker/lib/ui/components/recovery_key_sheet.dart b/mobile/apps/locker/lib/ui/components/recovery_key_sheet.dartindex 034fc71e22..a04d53ed64 100644--- a/mobile/apps/locker/lib/ui/components/recovery_key_sheet.dart+++ b/mobile/apps/locker/lib/ui/components/recovery_key_sheet.dart@@ -69,7 +69,7 @@ class _RecoveryKeySheetState extends State<RecoveryKeySheet> {const SizedBox(height: 24),Container(decoration: BoxDecoration(- color: colors.primaryDarker,+ color: colors.primary,borderRadius: BorderRadius.circular(16),),child: Stack(@@ -110,7 +110,7 @@ class _RecoveryKeySheetState extends State<RecoveryKeySheet> {const SizedBox(height: 16),Text(context.strings.recoveryKeySaveDescription,- style: TextStyles.mini.copyWith(color: colors.textLight),+ style: TextStyles.body.copyWith(color: colors.textLight),),const SizedBox(height: 24),ButtonComponent(diff --git a/mobile/apps/locker/lib/ui/pages/onboarding_page.dart b/mobile/apps/locker/lib/ui/pages/onboarding_page.dartindex 27bd2e3309..9f5f354802 100644--- a/mobile/apps/locker/lib/ui/pages/onboarding_page.dart+++ b/mobile/apps/locker/lib/ui/pages/onboarding_page.dart@@ -5,6 +5,7 @@ import 'package:ente_accounts/pages/email_entry_page.dart';import 'package:ente_accounts/pages/login_page.dart';import 'package:ente_accounts/pages/password_entry_page.dart';import 'package:ente_accounts/pages/password_reentry_page.dart';+import 'package:ente_components/ente_components.dart';import 'package:ente_ui/components/alert_bottom_sheet.dart';import "package:ente_ui/pages/developer_settings_page.dart";import "package:ente_ui/theme/ente_theme.dart";@@ -107,6 +108,9 @@ class _OnboardingPageState extends State<OnboardingPage> {@overrideWidget build(BuildContext context) {final colorScheme = getEnteColorScheme(context);+ final lightComponentTheme = ComponentTheme.lightTheme(+ app: ComponentApp.locker,+ );debugPrint("Building OnboardingPage");final l10n = context.l10n;return Scaffold(@@ -197,42 +201,31 @@ class _OnboardingPageState extends State<OnboardingPage> {),const SizedBox(height: 48),Padding(- padding: const EdgeInsets.all(16.0),- child: Column(- children: [- GradientButton(- text: l10n.loginToEnteAccount,- backgroundColor: Colors.white,- textColor: colorScheme.primary700,- onTap: _navigateToSignInPage,- ),- const SizedBox(height: 20),- Center(- child: GestureDetector(+ padding: const EdgeInsets.symmetric(horizontal: 16.0),+ child: Theme(+ data: lightComponentTheme,+ child: Column(+ children: [+ ButtonComponent(+ variant: ButtonComponentVariant.neutral,+ label: l10n.createAnEnteAccount,onTap: _navigateToSignUpPage,- child: Text.rich(- TextSpan(- text: "${l10n.dontHaveAccount} ",- style: getEnteTextTheme(- context,- ).body.copyWith(color: Colors.white),- children: [- TextSpan(- text: l10n.signUp,- style: getEnteTextTheme(context).bodyBold- .copyWith(- color: Colors.white,- decoration:- TextDecoration.underline,- decorationColor: Colors.white,- ),- ),- ],- ),- ),+ shouldSurfaceExecutionStates: false,),- ),- ],+ ],+ ),+ ),+ ),+ const SizedBox(height: 4),+ TextButton(+ onPressed: _navigateToSignInPage,+ child: Text(+ l10n.loginToExistingAccount,+ style: getEnteTextTheme(context).body.copyWith(+ decoration: TextDecoration.underline,+ decorationColor: Colors.white,+ color: Colors.white,+ ),),),],