Skip to content
pubscout

firebase_core

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

Flutter plugin that initializes Firebase and allows multiple Firebase app connections.

Flutter FavoriteWASM-ready
$ flutter pub add firebase_core
Source repository

What it does

Provides the core Firebase functionality for Flutter apps, enabling initialization of Firebase services and support for multiple Firebase apps within a single project. It bridges Flutter with the native Firebase SDKs on Android, iOS, web, Windows, macOS, and Linux.

AI-written summary of version 5.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to use any Firebase service (auth, analytics, firestore, etc.) in a Flutter app.
  • You want to support multiple Firebase projects in the same app.

Skip it when

  • You are building a non-Firebase backend or only need a single Firebase project and prefer a lighter setup.

Strengths

  • Stable, actively maintained by Firebase team.
  • Supports all major platforms out of the box.
  • Handles platform-specific initialization details automatically.

Weaknesses

  • Requires native platform setup (e.g., adding GoogleService-Info.plist or google-services.json).
  • May add unnecessary overhead if only a single Firebase service is used.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
3

Add google-services.json (Android) or GoogleService-Info.plist (iOS/macOS) to the project, configure Gradle/Podfile, and call Firebase.initializeApp() in main().

// main.dart
import 'package:firebase_core/firebase_core.dart';

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

Works with

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