π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Merge branch 'main' into login
AmanRajSinghMourya32360a49aae4
diff --cc mobile/apps/locker/lib/ui/pages/onboarding_page.dartindex dd91badc4b,6acd51d288..8f74d5db92--- a/mobile/apps/locker/lib/ui/pages/onboarding_page.dart+++ b/mobile/apps/locker/lib/ui/pages/onboarding_page.dart@@@ -5,8 -4,11 +5,10 @@@ import 'package:ente_accounts/pages/emaimport '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_ui/components/alert_bottom_sheet.dart';import 'package:ente_ui/components/buttons/button_widget.dart';+ import "package:ente_ui/components/buttons/models/button_result.dart";import "package:ente_ui/pages/developer_settings_page.dart";-import "package:ente_ui/pages/web_page.dart";import "package:ente_ui/theme/ente_theme.dart";import 'package:ente_ui/utils/dialog_util.dart';import 'package:flutter/material.dart';@@@ -184,46 -187,58 +186,93 @@@ class _OnboardingPageState extends Stat),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(+ 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,+ ),+ ),+ ],+ ),+ padding: const EdgeInsets.symmetric(horizontal: 24),+ child: GradientButton(+ text: l10n.loginToEnteAccount,+ backgroundColor: Colors.white,+ textColor: colorScheme.primary700,+ onTap: _navigateToSignInPage,+ ),+ ),+ const SizedBox(height: 16),+ Center(+ child: TextButton(+ onPressed: () async {+ final result =+ await showAlertBottomSheet<ButtonResult>(+ context,+ title: l10n.unlockLockerNewUserTitle,+ message: l10n.unlockLockerNewUserBody,+ assetPath: "assets/file_lock.png",+ buttons: [+ GradientButton(+ text: l10n.checkoutEntePhotos,+ onTap: () => Navigator.of(context).pop(+ ButtonResult(ButtonAction.first),+ ),+ ),+ ],+ );++ if (result?.action == ButtonAction.first) {+ await Navigator.of(context).push(+ MaterialPageRoute(+ builder: (BuildContext context) {+ return WebPage(+ l10n.checkoutEntePhotos,+ "https://ente.io/",+ );+ },+ ),+ );+ }+ },+ child: Text(+ l10n.noAccountCta,+ style: getEnteTextTheme(context).bodyBold.copyWith(+ color: Colors.white,+ decoration: TextDecoration.underline,+ decorationColor: Colors.white,),- ),+ ),+ ),+ ],),),- const SizedBox(height: 20),],),),