Always request for feedback (#946)

This commit is contained in:
Vishnu Mohandas 2023-03-31 14:27:17 +05:30 committed by GitHub
commit 9a3044bc48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,10 +33,8 @@ class _DeleteAccountPageState extends State<DeleteAccountPage> {
'Its missing a key feature that I need',
'The app or a certain feature does not \nbehave as I think it should',
'I found another service that I like better',
'I use a different account',
'My reason isnt listed',
];
final List<int> _reasonIndexesWhereFeedbackIsNecessary = [1, 2, 5];
@override
Widget build(BuildContext context) {
@ -216,9 +214,7 @@ class _DeleteAccountPageState extends State<DeleteAccountPage> {
}
bool _shouldAskForFeedback() {
return (_reasonIndexesWhereFeedbackIsNecessary
.contains(_deletionReason.indexOf(_dropdownValue)) &&
_feedbackTextCtrl.text.trim().isEmpty);
return _feedbackTextCtrl.text.trim().isEmpty;
}
Future<void> _initiateDelete(BuildContext context) async {