Remove feedback dialog post account deletion
This commit is contained in:
parent
59c12de19f
commit
b7b6de437f
|
@ -1,7 +1,6 @@
|
|||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import "package:logging/logging.dart";
|
||||
import 'package:photos/core/configuration.dart';
|
||||
import 'package:photos/models/delete_account.dart';
|
||||
import 'package:photos/services/user_service.dart';
|
||||
|
@ -252,25 +251,6 @@ class _DeleteAccountPageState extends State<DeleteAccountPage> {
|
|||
}
|
||||
|
||||
Navigator.of(context).popUntil((route) => route.isFirst);
|
||||
await showTextInputDialog(
|
||||
context,
|
||||
title: "Your account was deleted. Would you like to leave us a note?",
|
||||
submitButtonLabel: "Send",
|
||||
hintText: "Optional, as short as you like...",
|
||||
alwaysShowSuccessState: true,
|
||||
textCapitalization: TextCapitalization.words,
|
||||
onSubmit: (String text) async {
|
||||
// indicates user cancelled the rename request
|
||||
if (text == "" || text.trim().isEmpty) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
await UserService.instance.sendFeedback(context, text);
|
||||
} catch (e, s) {
|
||||
Logger("Delete account").severe("Failed to send feedback", e, s);
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _requestEmailForDeletion(BuildContext context) async {
|
||||
|
|
Loading…
Reference in a new issue