effortless_firebase_auth 1.0.5 copy "effortless_firebase_auth: ^1.0.5" to clipboard
effortless_firebase_auth: ^1.0.5 copied to clipboard

effortless_firebase_auth A new Flutter package.

example/lib/main.dart

// import 'package:allsirsa/temp.dart' show TempApp;
import 'package:flutter/material.dart';
import 'package:effortless_firebase_auth/effortless_firebase_auth.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_core/firebase_core.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Easy Auth',
      debugShowCheckedModeBanner: false,
      home: SignIn(
        themeColor: Colors.red,
        // 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');
        },
      ),
    );
  }
}
0
likes
30
points
49
downloads

Publisher

unverified uploader

Weekly Downloads

effortless_firebase_auth A new Flutter package.

Homepage

License

Apache-2.0 (license)

Dependencies

dartz, device_preview, firebase_auth, firebase_core, flutter, flutter_form_builder, form_field_validator, global_wings, google_sign_in, intl, logger, meta, nice_button

More

Packages that depend on effortless_firebase_auth