This code creates a safe area that consists of a Column and a TextButton. The Column has two children, the first of which is a TextButton which will be triggered when the user presses it. The second child is a const Text which is displayed when the TextButton is clicked.

    return SafeArea(
        child: Column(
        children: [
          const Text('Please verify your email address'),
          onPressed: () async {
            final user = FirebaseAuth.instance.currentUser;
            await user?.sendEmailVerification();
          child: const Text('Send email verification'),
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.