Add Firebase authentication to your Flutter app with a few lines of code.
- Sign in with email
- Sign in with Google
- Sign in with Apple
- Sign in Anonymous
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return AuthProvider(
autoSignInAnonymously: false,
splashScreenDurationMillis: 500,
child: MaterialApp(
home: AuthManagerWidget(
splashScreen: SplashScreen(),
loggedScreen: LoggedScreen(),
notLoggedScreen: NotLoggedScreen(),
)),
);
}
}