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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user