firebase_ui_auth
4.0.0, released 4 days ago by firebase.google.com
Pre-built Firebase Auth UI widgets for Flutter
What it does
Provides ready‑to‑use screens for email, phone, OAuth sign‑in, email verification, and more, integrating directly with Firebase Auth.
AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need a quick, drop‑in authentication UI
- Want to support multiple providers without custom coding
- Need email verification and link sign‑in out of the box
Skip it when
- Require a highly custom design or branding
- Want to keep dependencies minimal
Strengths
- Comprehensive provider support (email, phone, OAuth, Apple, Google, Twitter, Facebook)
- Easy integration with Firebase Auth
- Open source and actively maintained
Weaknesses
- Large dependency set (firebase_core, firebase_auth, etc.)
- Recent breaking changes in 4.0.0 require migration
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 11
flutter pub add firebase_ui_auth
import 'package:flutter/material.dart';
import 'package:firebase_auth/firebase_auth.dart' hide EmailAuthProvider;
import 'package:firebase_ui_auth/firebase_ui_auth.dart';
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
final providers = [EmailAuthProvider()];
return MaterialApp(
initialRoute: FirebaseAuth.instance.currentUser == null ? '/sign-in' : '/profile',
routes: {
'/sign-in': (context) => SignInScreen(providers: providers),
'/profile': (context) => ProfileScreen(providers: providers),
},
);
}
}Alternatives
Packages that do the same job and could replace firebase_ui_auth.
- amplify_auth_cognito
Amplify Flutter Auth plugin for AWS Cognito
90Compare - firebase_phone_auth_handler
Easy Firebase phone authentication with OTP sending, verification, and auto-fetch support.
64Compare - scaffold_ui
CLI tool to quickly scaffold authentication flows and in-app purchases in Nylo projects.
62Compare
Works with
Packages commonly used together with firebase_ui_auth: ones it builds on, ones built on it, and its own family.
- clockfirebase_ui_auth depends on itA fakeable wrapper for dart:core clock APIs.
- shared_preferencesfirebase_ui_auth depends on itFlutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
- firebase_corefirebase_ui_auth depends on itFlutter plugin that initializes Firebase and allows multiple Firebase app connections.
- app_linksfirebase_ui_auth depends on itHandler for Android App Links, iOS Universal Links, and custom URL schemes across mobile and desktop.
- firebase_authfirebase_ui_auth depends on itFlutter plugin for Firebase Authentication enabling passwords, phone numbers, and identity providers.
- email_validatorfirebase_ui_auth depends on itA simple Dart class for validating email addresses without using RegEx.
- firebase_ui_localizationsfirebase_ui_auth depends on itProvides localized strings for Firebase UI Auth, Firestore and Database widgets.
- firebase_core_webSame familyWeb implementation of firebase_core for Flutter apps.