Email Verification

Loading preview

Starting the Flutter app

A Flutter email verification screen with a confirmation illustration and a resend-email option.

Get the source

Add it to your project

Copies the Dart source into your app, so you own it. Flutter SDK only, no extra packages.

First time? Run dart pub global activate fluttertemplates_dev, or read the CLI guide.

How it works

EmailVerification is a StatelessWidget with the address alex@example.com baked into a Text.rich, and two Spacers centre the Column. ‘Open email app’ and ‘Resend email’ call onOpenEmailApp and onResendEmail, or show a demo SnackBar without them. The screen also has no way of learning that verification happened, so a user who clicks the link stays here.

Adapting it

  • Add an email parameter to EmailVerification and use it in the TextSpan.
  • Call your resend endpoint from onResendEmail with a cooldown, which requires a StatefulWidget.
  • Poll your auth provider or listen for a deep link to move on, and handle onOpenEmailApp with a package such as open_mail_app.