tweak copy

This commit is contained in:
Neeraj Gupta 2022-12-06 14:21:32 +05:30
parent 67ef2bfad4
commit 3f4a233a7f
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -74,6 +74,7 @@ class _PasswordReminderState extends State<PasswordReminder> {
"Please authenticate to change your password", "Please authenticate to change your password",
); );
if (hasAuthenticated) { if (hasAuthenticated) {
UserRemoteFlagService.instance.stopPasswordReminder().ignore();
await routeToPage( await routeToPage(
context, context,
const PasswordEntryPage( const PasswordEntryPage(
@ -81,6 +82,16 @@ class _PasswordReminderState extends State<PasswordReminder> {
), ),
forceCustomPageRoute: true, forceCustomPageRoute: true,
); );
unawaited(
Navigator.of(context).pushAndRemoveUntil(
MaterialPageRoute(
builder: (BuildContext context) {
return const HomeWidget();
},
),
(route) => false,
),
);
} }
} catch (e) { } catch (e) {
showGenericErrorDialog(context); showGenericErrorDialog(context);
@ -117,7 +128,7 @@ class _PasswordReminderState extends State<PasswordReminder> {
), ),
onPressed: () async { onPressed: () async {
Navigator.of(context, rootNavigator: true).pop('dialog'); Navigator.of(context, rootNavigator: true).pop('dialog');
// UserRemoteFlagService.instance.stopPasswordReminder().ignore();
_onChangePasswordClick(); _onChangePasswordClick();
}, },
child: const Text( child: const Text(
@ -271,14 +282,11 @@ class _PasswordReminderState extends State<PasswordReminder> {
const SizedBox(height: 18), const SizedBox(height: 18),
Text( Text(
"Enter your password to ensure you remember it." "Enter your password to ensure you remember it."
"\n\nThe developer account we use to publish " "\n\nThe developer account we use to publish ente on App Store will change in the next version, so you will need to login again when the next version is released.",
"ente on App Store will change in the next "
"version. This will cause you to get logged out when the next version is released. So it "
"is good to make sure you know your password.",
style: enteTheme.textTheme.small style: enteTheme.textTheme.small
.copyWith(color: enteTheme.colorScheme.textMuted), .copyWith(color: enteTheme.colorScheme.textMuted),
), ),
const SizedBox(height: 12), const SizedBox(height: 24),
TextFormField( TextFormField(
autofillHints: const [AutofillHints.password], autofillHints: const [AutofillHints.password],
decoration: InputDecoration( decoration: InputDecoration(