verify_email 0.0.3 verify_email: ^0.0.3 copied to clipboard
Verify an email address your user just entered. It's NOT encrypted but should do the job for most apps.
import 'package:flutter/material.dart';
import 'package:verify_email/verify_email.dart';
class VerifyEmailExample extends StatefulWidget {
@override
_VerifyEmailExampleState createState() => _VerifyEmailExampleState();
}
class _VerifyEmailExampleState extends State<VerifyEmailExample> {
bool isVerified = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: RaisedButton(
child: Text(isVerified ? "Verified!" : "Verify account"),
onPressed: ()async{
isVerified = await VerifyEmail().verify(context: context, email: "user@email.com", credential: "Google accessToken", senderEmail: "sendto@gmail.com");
setState(() {
isVerified = isVerified;
});
},
),
),
);
}
}