Last active
December 10, 2019 00:46
-
-
Save paulo9mv/2e3717a4b6f1161dd020f222c56bda9b to your computer and use it in GitHub Desktop.
MyHomePageState método
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
class _MyHomePageState extends State<MyHomePage> { | |
String _text = ''; | |
var email = Email('seuemail@seuprovedor.com', 'suasenha'); | |
void _sendEmail() async { | |
bool result = await email.sendMessage('Sua mensagem de email', 'Seu destinatário', 'Seu assunto do email'); | |
setState(() { | |
_text = result ? 'Enviado.' : 'Não enviado.'; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment