Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Spread the verification links across the card

r4khuld1f20d27517f
diff --git a/mobile/apps/photos/lib/ui/account/ott_verification_page.dart b/mobile/apps/photos/lib/ui/account/ott_verification_page.dart
index 6a285eea55..8362a5f0ca 100644
--- a/mobile/apps/photos/lib/ui/account/ott_verification_page.dart
+++ b/mobile/apps/photos/lib/ui/account/ott_verification_page.dart
@@ -152,27 +152,30 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {
if (widget.isResetPasswordScreen)
Center(child: _buildResendCodeButton())
else
- Wrap(
- alignment: WrapAlignment.spaceBetween,
- crossAxisAlignment: WrapCrossAlignment.center,
- spacing: Spacing.lg,
- children: [
- TextButton(
- style: TextButton.styleFrom(
- foregroundColor: colors.textLighter,
- padding: const EdgeInsets.symmetric(vertical: 14),
- textStyle: TextStyles.bodyLink,
+ SizedBox(
+ width: double.infinity,
+ child: Wrap(
+ alignment: WrapAlignment.spaceBetween,
+ crossAxisAlignment: WrapCrossAlignment.center,
+ spacing: Spacing.lg,
+ children: [
+ TextButton(
+ style: TextButton.styleFrom(
+ foregroundColor: colors.textLighter,
+ padding: const EdgeInsets.symmetric(vertical: 14),
+ textStyle: TextStyles.bodyLink,
+ ),
+ onPressed: _isSubmitting || _isResendingCode
+ ? null
+ : () {
+ Navigator.of(context).pop();
+ widget.onChangeEmail?.call();
+ },
+ child: Text(context.strings.changeEmail),
),
- onPressed: _isSubmitting || _isResendingCode
- ? null
- : () {
- Navigator.of(context).pop();
- widget.onChangeEmail?.call();
- },
- child: Text(context.strings.changeEmail),
- ),
- _buildResendCodeButton(),
- ],
+ _buildResendCodeButton(),
+ ],
+ ),
),
],
);