π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix email sheet
AmanRajSinghMouryaf93c1801dc7b
diff --git a/mobile/apps/auth/lib/ui/settings/account_section_widget.dart b/mobile/apps/auth/lib/ui/settings/account_section_widget.dartindex 8d19ecc259..39b6fdee9e 100644--- a/mobile/apps/auth/lib/ui/settings/account_section_widget.dart+++ b/mobile/apps/auth/lib/ui/settings/account_section_widget.dart@@ -1,7 +1,6 @@import 'package:ente_accounts/pages/change_email_dialog.dart';import 'package:ente_accounts/pages/delete_account_page.dart';import 'package:ente_accounts/pages/password_entry_page.dart';-import 'package:ente_accounts/pages/recovery_key_page.dart';import 'package:ente_accounts/services/user_service.dart';import 'package:ente_auth/core/configuration.dart';import 'package:ente_auth/l10n/l10n.dart';@@ -9,6 +8,7 @@ import 'package:ente_auth/theme/ente_theme.dart';import 'package:ente_auth/ui/components/captioned_text_widget.dart';import 'package:ente_auth/ui/components/expandable_menu_item_widget.dart';import 'package:ente_auth/ui/components/menu_item_widget.dart';+import 'package:ente_auth/ui/components/recovery_key_sheet.dart';import 'package:ente_auth/ui/home_page.dart';import 'package:ente_auth/ui/settings/common_settings.dart';import 'package:ente_auth/utils/dialog_util.dart';@@ -50,14 +50,7 @@ class AccountSectionWidget extends StatelessWidget {);if (hasAuthenticated) {// ignore: unawaited_futures- showDialog(- context: context,- builder: (BuildContext context) {- return const ChangeEmailDialog();- },- barrierColor: Colors.black.withValues(alpha: 0.85),- barrierDismissible: false,- );+ showChangeEmailDialog(context);}},),@@ -119,15 +112,9 @@ class AccountSectionWidget extends StatelessWidget {return;}// ignore: unawaited_futures- routeToPage(+ showRecoveryKeySheet(context,- RecoveryKeyPage(- Configuration.instance,- recoveryKey,- l10n.ok,- showAppBar: true,- onDone: () {},- ),+ recoveryKey: recoveryKey,);}},diff --git a/mobile/packages/accounts/lib/pages/change_email_dialog.dart b/mobile/packages/accounts/lib/pages/change_email_dialog.dartindex c1508f8b38..2c1be5069b 100644--- a/mobile/packages/accounts/lib/pages/change_email_dialog.dart+++ b/mobile/packages/accounts/lib/pages/change_email_dialog.dart@@ -41,54 +41,57 @@ class _ChangeEmailDialogState extends State<ChangeEmailDialog> {final colorScheme = getEnteColorScheme(context);final textTheme = getEnteTextTheme(context);- return Column(- mainAxisSize: MainAxisSize.min,- crossAxisAlignment: CrossAxisAlignment.start,- children: [- TextFormField(- controller: _emailController,- decoration: InputDecoration(- fillColor: _emailIsValid- ? colorScheme.primary700.withValues(alpha: 0.2)- : colorScheme.backdropBase,- filled: true,- hintText: context.strings.enterNewEmailHint,- hintStyle: TextStyle(color: colorScheme.textMuted),- contentPadding: const EdgeInsets.symmetric(- horizontal: 16,- vertical: 14,+ return Material(+ color: Colors.transparent,+ child: Column(+ mainAxisSize: MainAxisSize.min,+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ TextFormField(+ controller: _emailController,+ decoration: InputDecoration(+ fillColor: _emailIsValid+ ? colorScheme.primary700.withValues(alpha: 0.2)+ : colorScheme.backdropBase,+ filled: true,+ hintText: context.strings.enterNewEmailHint,+ hintStyle: TextStyle(color: colorScheme.textMuted),+ contentPadding: const EdgeInsets.symmetric(+ horizontal: 16,+ vertical: 14,+ ),+ border: OutlineInputBorder(+ borderSide: BorderSide.none,+ borderRadius: BorderRadius.circular(8),+ ),+ enabledBorder: OutlineInputBorder(+ borderSide: BorderSide.none,+ borderRadius: BorderRadius.circular(8),+ ),+ suffixIcon: _emailIsValid+ ? Icon(+ Icons.check,+ size: 20,+ color: colorScheme.primary700,+ )+ : null,),- border: OutlineInputBorder(- borderSide: BorderSide.none,- borderRadius: BorderRadius.circular(8),+ style: textTheme.body.copyWith(+ color: colorScheme.textBase,),- enabledBorder: OutlineInputBorder(- borderSide: BorderSide.none,- borderRadius: BorderRadius.circular(8),- ),- suffixIcon: _emailIsValid- ? Icon(- Icons.check,- size: 20,- color: colorScheme.primary700,- )- : null,+ autocorrect: false,+ keyboardType: TextInputType.emailAddress,+ textInputAction: TextInputAction.done,+ autofocus: true,+ onFieldSubmitted: (_) => _handleSubmit(),),- style: textTheme.body.copyWith(- color: colorScheme.textBase,+ const SizedBox(height: 24),+ GradientButton(+ text: context.strings.verify,+ onTap: _emailIsValid ? _handleSubmit : null,),- autocorrect: false,- keyboardType: TextInputType.emailAddress,- textInputAction: TextInputAction.done,- autofocus: true,- onFieldSubmitted: (_) => _handleSubmit(),- ),- const SizedBox(height: 24),- GradientButton(- text: context.strings.verify,- onTap: _emailIsValid ? _handleSubmit : null,- ),- ],+ ],+ ),);}