Usage

Use the SignIn widget.

You can implement a complete firebase auth flow with just 11 lines of code.

SignIn(
        themeColor: Colors.deepPurple,
        // Sign in and Sign Up fields are customizable in EmailConfig
        methods: [Google(), Email(config: EmailConfig())],
        auth: FirebaseAuth.instance,
        onSuccess: (user, context, fields) {
          showSnackBar(
              'You made the signUp flow in record time. Cheers.', context);
          print('user: $user \n fields: $fields');
        },
      )

That is it you will now see the authentication screen now.

Last updated