π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use GradientButton in new account dialog for consistency
AmanRajSinghMourya8c45d17930f0
diff --git a/mobile/apps/locker/lib/ui/components/new_account_dialog.dart b/mobile/apps/locker/lib/ui/components/new_account_dialog.dartindex baf12f1fd5..485fcdf09c 100644--- a/mobile/apps/locker/lib/ui/components/new_account_dialog.dart+++ b/mobile/apps/locker/lib/ui/components/new_account_dialog.dart@@ -3,6 +3,7 @@ import "package:ente_ui/components/buttons/models/button_result.dart";import "package:ente_ui/theme/ente_theme.dart";import "package:flutter/material.dart";import "package:hugeicons/hugeicons.dart";+import "package:locker/ui/components/gradient_button.dart";Future<ButtonResult?> showCreateNewAccountDialog(BuildContext context, {@@ -10,7 +11,7 @@ Future<ButtonResult?> showCreateNewAccountDialog(required String body,required String buttonLabel,required String assetPath,- Widget? icon,+ HugeIcon? icon,}) {return showModalBottomSheet<ButtonResult>(context: context,@@ -33,7 +34,7 @@ class _CreateNewAccountBottomSheet extends StatelessWidget {final String body;final String buttonLabel;final String assetPath;- final Widget? icon;+ final HugeIcon? icon;const _CreateNewAccountBottomSheet({required this.title,@@ -108,36 +109,20 @@ class _CreateNewAccountBottomSheet extends StatelessWidget {textAlign: TextAlign.center,),const SizedBox(height: 32),- SizedBox(- width: double.infinity,- height: 56,- child: ElevatedButton.icon(- onPressed: () {- Navigator.of(context).pop(- ButtonResult(ButtonAction.first),- );- },- style: ElevatedButton.styleFrom(- backgroundColor: colorScheme.primary700,- shape: RoundedRectangleBorder(- borderRadius: BorderRadius.circular(12),- ),- elevation: 0,- ),- icon: icon ??- const HugeIcon(- icon: HugeIcons.strokeRoundedFileUpload,- color: Colors.white,- size: 20,- strokeWidth: 1.9,- ),- label: Text(- buttonLabel,- style: textTheme.bodyBold.copyWith(+ GradientButton(+ text: buttonLabel,+ hugeIcon: icon ??+ const HugeIcon(+ icon: HugeIcons.strokeRoundedFileUpload,color: Colors.white,+ size: 20,+ strokeWidth: 1.9,),- ),- ),+ onTap: () {+ Navigator.of(context).pop(+ ButtonResult(ButtonAction.first),+ );+ },),],),diff --git a/mobile/apps/locker/lib/ui/pages/login_page.dart b/mobile/apps/locker/lib/ui/pages/login_page.dartindex ad6dc4fa60..7fa7f0732e 100644--- a/mobile/apps/locker/lib/ui/pages/login_page.dart+++ b/mobile/apps/locker/lib/ui/pages/login_page.dart@@ -251,7 +251,6 @@ class _LoginPageState extends State<LoginPage> {body: context.l10n.unlockLockerPaidPlanBody,buttonLabel: context.l10n.okay,assetPath: "assets/file_lock.png",- icon: const SizedBox.shrink(),);}diff --git a/mobile/apps/locker/lib/ui/pages/onboarding_page.dart b/mobile/apps/locker/lib/ui/pages/onboarding_page.dartindex 13ca900378..12d1d5ad42 100644--- a/mobile/apps/locker/lib/ui/pages/onboarding_page.dart+++ b/mobile/apps/locker/lib/ui/pages/onboarding_page.dart@@ -220,7 +220,6 @@ class _OnboardingPageState extends State<OnboardingPage> {body: l10n.unlockLockerPaidPlanBody,buttonLabel: l10n.checkoutEntePhotos,assetPath: "assets/file_lock.png",- icon: const SizedBox.shrink(),);if (result?.action == ButtonAction.first) {