π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Merge branch 'main' into locker_fix
Aman Raj3d29506fd08c
diff --cc mobile/apps/locker/lib/ui/pages/login_page.dartindex 7fa7f0732e,38dde0da2d..e197ea5155--- a/mobile/apps/locker/lib/ui/pages/login_page.dart+++ b/mobile/apps/locker/lib/ui/pages/login_page.dart@@@ -247,10 -247,11 +247,10 @@@ class _LoginPageState extends State<Logvoid _handleSignUp() {showCreateNewAccountDialog(context,- title: context.l10n.unlockLockerPaidPlanTitle,- body: context.l10n.unlockLockerPaidPlanBody,+ title: context.l10n.unlockLockerNewUserTitle,+ body: context.l10n.unlockLockerNewUserBody,buttonLabel: context.l10n.okay,assetPath: "assets/file_lock.png",- icon: const SizedBox.shrink(),);}diff --cc mobile/apps/locker/lib/ui/pages/onboarding_page.dartindex 71d3a6f40d,fbb231e242..9b1537e07b--- a/mobile/apps/locker/lib/ui/pages/onboarding_page.dart+++ b/mobile/apps/locker/lib/ui/pages/onboarding_page.dart@@@ -144,98 -57,109 +144,110 @@@ class _OnboardingPageState extends Stat}}},- child: SafeArea(- child: Column(- children: [- Expanded(- child: Center(- child: SingleChildScrollView(- child: Column(- children: [- const Padding(padding: EdgeInsets.all(12)),- Image.asset(- 'assets/locker-logo.png',- height: 28,- ),- const Padding(padding: EdgeInsets.all(28)),- _getFeatureSlider(context),- const Padding(padding: EdgeInsets.all(12)),- DotsIndicator(- dotsCount: 3,- position: _featureIndex.toInt(),- decorator: DotsDecorator(- activeColor: Colors.white,- color: Colors.white.withValues(alpha: 0.32),- activeShape: RoundedRectangleBorder(- borderRadius: BorderRadius.circular(14),+ child: CustomScrollView(+ physics: const BouncingScrollPhysics(),+ slivers: [+ SliverFillRemaining(+ hasScrollBody: false,+ child: Padding(+ padding: const EdgeInsets.symmetric(vertical: 32),+ child: Column(+ children: [+ const SizedBox(height: 28),+ Expanded(+ child: Column(+ mainAxisAlignment: MainAxisAlignment.center,+ children: [+ _getFeatureSlider(context),+ const SizedBox(height: 12),+ DotsIndicator(+ dotsCount: _featureCount,+ position: _activeDotIndex,+ decorator: DotsDecorator(+ activeColor: Colors.white,+ color: Colors.white.withValues(alpha: 0.32),+ activeShape: RoundedRectangleBorder(+ borderRadius: BorderRadius.circular(14),+ ),+ shape: RoundedRectangleBorder(+ borderRadius: BorderRadius.circular(14),+ ),+ size: const Size(10, 10),+ activeSize: const Size(20, 10),+ spacing: const EdgeInsets.all(6),),- shape: RoundedRectangleBorder(- borderRadius: BorderRadius.circular(14),- ),- size: const Size(10, 10),- activeSize: const Size(20, 10),- spacing: const EdgeInsets.all(6),+ onTap: (index) {+ _autoScrollDisabled = true;+ _stopAutoScroll();+ _animateToFeature(index);+ },),- ),- const Padding(padding: EdgeInsets.all(28)),- ],+ ],+ ),),- ),- ),- ),- Container(- width: double.infinity,- padding: const EdgeInsets.symmetric(horizontal: 24),- child: ElevatedButton(- style: ElevatedButton.styleFrom(- backgroundColor: Colors.white,- foregroundColor: colorScheme.primary700,- padding: const EdgeInsets.symmetric(- horizontal: 8,- vertical: 18,- ),- shape: RoundedRectangleBorder(- borderRadius: BorderRadius.circular(20),+ const SizedBox(height: 48),+ Padding(+ 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 showCreateNewAccountDialog(- context,- title: l10n.unlockLockerPaidPlanTitle,- body: l10n.unlockLockerPaidPlanBody,- buttonLabel: l10n.checkoutEntePhotos,- assetPath: "assets/file_lock.png",- );+ minimumSize: const Size(double.infinity, 56),+ ),+ onPressed: _navigateToSignInPage,+ child: Text(+ l10n.loginToEnteAccount,+ style: getEnteTextTheme(context).bodyBold.copyWith(+ color: colorScheme.primary700,+ ),+ ),+ ),+ ),+ const SizedBox(height: 16),+ Center(+ child: TextButton(+ onPressed: () async {+ final result = await showCreateNewAccountDialog(+ context,+ title: l10n.unlockLockerNewUserTitle,+ body: l10n.unlockLockerNewUserBody,+ buttonLabel: l10n.checkoutEntePhotos,+ assetPath: "assets/file_lock.png",+ icon: const SizedBox.shrink(),+ );- if (result?.action == ButtonAction.first) {- await Navigator.of(context).push(- MaterialPageRoute(- builder: (BuildContext context) {- return WebPage(- l10n.checkoutEntePhotos,- "https://ente.io/",+ 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,+ }+ },+ child: Text(+ l10n.noAccountCta,+ style: getEnteTextTheme(context).bodyBold.copyWith(+ color: Colors.white,+ decoration: TextDecoration.underline,+ decorationColor: Colors.white,+ ),),- ),+ ),+ ),+ const SizedBox(height: 20),+ ],),),- const Padding(padding: EdgeInsets.all(20)),- ],- ),+ ),+ ],),),);