Skip to content
pubscout

firebase_ui_auth

4.0.0, released 4 days ago by firebase.google.com

Pre-built Firebase Auth UI widgets for Flutter

WASM-ready
$ flutter pub add firebase_ui_auth
Source repository

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.

Works with

Packages commonly used together with firebase_ui_auth: ones it builds on, ones built on it, and its own family.