Created
December 7, 2018 09:42
-
-
Save dotdoom/c9201f50e82b5c5882b32e6c1ea3d898 to your computer and use it in GitHub Desktop.
URI schemes for sending emails (iOS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:core'; | |
void main() { | |
final commonOptions = { | |
'subject': 'test', | |
'body': 'foobar', | |
}; | |
print(Uri(scheme: 'mailto', path: '[email protected]', queryParameters: commonOptions)); | |
print(Uri(scheme: 'googlegmail', host: '', path: '/co', queryParameters: { | |
'to': '[email protected]', | |
}..addAll(commonOptions))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment