|
@@ -1,5 +1,3 @@
|
|
-// @dart=2.9
|
|
|
|
-
|
|
|
|
import 'dart:convert';
|
|
import 'dart:convert';
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/material.dart';
|
|
@@ -17,7 +15,7 @@ import 'package:photos/utils/email_util.dart';
|
|
|
|
|
|
class DeleteAccountPage extends StatelessWidget {
|
|
class DeleteAccountPage extends StatelessWidget {
|
|
const DeleteAccountPage({
|
|
const DeleteAccountPage({
|
|
- Key key,
|
|
|
|
|
|
+ Key? key,
|
|
}) : super(key: key);
|
|
}) : super(key: key);
|
|
|
|
|
|
@override
|
|
@override
|
|
@@ -53,7 +51,7 @@ class DeleteAccountPage extends StatelessWidget {
|
|
"We'll be sorry to see you go. Are you facing some issue?",
|
|
"We'll be sorry to see you go. Are you facing some issue?",
|
|
style: Theme.of(context)
|
|
style: Theme.of(context)
|
|
.textTheme
|
|
.textTheme
|
|
- .subtitle1
|
|
|
|
|
|
+ .subtitle1!
|
|
.copyWith(color: colorScheme.textMuted),
|
|
.copyWith(color: colorScheme.textMuted),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
@@ -75,7 +73,7 @@ class DeleteAccountPage extends StatelessWidget {
|
|
],
|
|
],
|
|
style: Theme.of(context)
|
|
style: Theme.of(context)
|
|
.textTheme
|
|
.textTheme
|
|
- .subtitle1
|
|
|
|
|
|
+ .subtitle1!
|
|
.copyWith(color: colorScheme.textMuted),
|
|
.copyWith(color: colorScheme.textMuted),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
@@ -145,9 +143,9 @@ class DeleteAccountPage extends StatelessWidget {
|
|
final decryptChallenge = CryptoUtil.openSealSync(
|
|
final decryptChallenge = CryptoUtil.openSealSync(
|
|
Sodium.base642bin(response.encryptedChallenge),
|
|
Sodium.base642bin(response.encryptedChallenge),
|
|
Sodium.base642bin(
|
|
Sodium.base642bin(
|
|
- Configuration.instance.getKeyAttributes().publicKey,
|
|
|
|
|
|
+ Configuration.instance.getKeyAttributes()!.publicKey,
|
|
),
|
|
),
|
|
- Configuration.instance.getSecretKey(),
|
|
|
|
|
|
+ Configuration.instance.getSecretKey()!,
|
|
);
|
|
);
|
|
final challengeResponseStr = utf8.decode(decryptChallenge);
|
|
final challengeResponseStr = utf8.decode(decryptChallenge);
|
|
await UserService.instance
|
|
await UserService.instance
|