1
0
mirror of https://github.com/GitJournal/GitJournal.git synced 2025-07-10 20:40:34 +08:00

ios Feedback: Spaces must be properly encoded

We ideally should use the same method in both the bug report and
feedback, however, bug reports require an attachment, and then plugin
being used doesn't work if an email client is not installed.

https://github.com/flutter/flutter/issues/10032
This commit is contained in:
Vishesh Handa
2019-10-09 20:48:08 +02:00
parent 94df2853c0
commit 57eb00a583

@ -92,6 +92,10 @@ class AppDrawer extends StatelessWidget {
var subject = 'GitJournal Feedback';
var body =
"Hey!\n\nHere are some ways to improve GitJournal - \n \n\nVersion: $versionText\nPlatform: $platform";
if (Platform.isIOS) {
subject = Uri.encodeComponent(subject);
body = Uri.encodeComponent(body);
}
var url = 'mailto:$emailAddress?subject=$subject&body=$body';
launch(url);