Esse é meu teste, aqui temos um tutorial de instalação
- No passo 1, instale o Linux
- No passo 2, desinstale o Linux
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
Text('Configurando um SMTP server: $_text',), | |
], | |
), | |
), | |
floatingActionButton: FloatingActionButton( | |
onPressed: _sendEmail, | |
tooltip: 'Send email', | |
child: Icon(Icons.email), |
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.'; | |
}); |
import 'package:mailer/mailer.dart'; | |
import 'package:mailer/smtp_server.dart'; | |
class Email { | |
String _username; | |
var smtpServer; | |
Email(String username, String password){ | |
_username = username; | |
smtpServer = gmail(_username, password); |
import 'package:mailer/mailer.dart'; | |
import 'package:mailer/smtp_server.dart'; | |
class Email { | |
String _username; | |
var smtpServer; | |
Email(String username, String password){ | |
_username = username; | |
smtpServer = gmail(_username, password); |
dependencies: | |
flutter: | |
sdk: flutter | |
# The following adds the Cupertino Icons font to your application. | |
# Use with the CupertinoIcons class for iOS style icons. | |
cupertino_icons: ^0.1.2 | |
mailer: ^3.0.4 #Adicione esta linha |
{ | |
"version": "v1", | |
"config": { | |
"visState": { | |
"filters": [ | |
{ | |
"dataId": "ORDERS", | |
"id": "0dd3ceodl", | |
"name": "timestamp", | |
"type": "timeRange", |
function sum(a,b){ | |
return a + b; | |
} |