FlutterFire Documentation

website·Indexed 19 days ago

https://firebase.flutter.dev/docs/

Documentation for FlutterFire plugins, providing guides on integrating Firebase services into Flutter applications. Covers core functionality, the flutterfire_ui package for authentication and database widgets, and specific services including Cloud Storage, Remote Config, Performance Monitoring, Cloud Messaging, and the ML Model Downloader.

Tokens
65K
Snippets
365
Records
473
Agent score
96%

What's inside FlutterFire

  1. Overview of FlutterFire UI for Auth

    FlutterFire UI for Auth provides pre-built, fully featured UI screens for implementing authentication in Flutter applications. It offers a balance between drop-in screens for rapid development and lower-level implementation details for developers requiring tighter control over the authentication flow.
  2. Overview of Firebase Cloud Messaging (FCM) for Flutter

    Firebase Cloud Messaging (FCM) is a free, cross-platform messaging solution used to send notification messages to drive user engagement or transfer data payloads (up to 4 KB) to client apps for use cases like instant messaging.
  3. Overview of Firebase Realtime Database for Flutter

    Firebase Realtime Database is a cloud-hosted database that stores data as JSON and synchronizes it in real-time across all connected clients. In Flutter and Firebase cross-platform applications, all clients can share a single Realtime Database instance to automatically receive the most current data updates.
  4. Overview of Firebase Crashlytics for Flutter

    Firebase Crashlytics collects analytics and detailed reports on app crashes and errors. It provides three primary capabilities:

    1. Logs: Custom events sent with crash reports to provide context.
    2. Crash reports: Automatic generation and transmission of crash reports upon the next app launch.
    3. Stack traces: Ability to send Dart stack traces even when errors are caught and the app recovers.
  5. Overview of Firebase Installations (FIS) for Flutter

    Firebase Installations (FIS) manages the installation of a Firebase app on a user's device by providing a unique Firebase installation ID (FID). While most Firebase services (such as FCM, Google Analytics, and Remote Config) use FIS internally without requiring developer intervention, developers can interact with the FIS API directly to delete an installation and its associated data, retrieve installation IDs for targeting specific devices, or retrieve installation auth tokens.
  6. Overview of Firebase Remote Config for Flutter

    Firebase Remote Config is a cloud service that allows developers to change the behavior and appearance of a Flutter app without requiring users to download an app update. The workflow involves creating in-app default values that control the app's behavior, which can then be overridden via the Firebase console or Remote Config backend APIs for all users or specific user segments. The app manages when updates are applied, allowing for frequent checks with minimal performance impact.
  7. Overview of Cloud Functions for Firebase

    Cloud Functions for Firebase allow developers to automatically run backend code in a managed Google Cloud environment in response to HTTPS requests or events triggered by other Firebase features. This eliminates the need to manage or scale dedicated servers.
  8. Overview of Cloud Firestore ODM

    The Cloud Firestore ODM (Object Document Mapper) is an interface that treats Firestore documents as tree structures where each node is an object. It enables developers to build fully type-safe Flutter applications by defining data schemas that represent the Firestore database structure. Key benefits include bi-directional data validation, type-safe querying, dedicated Flutter Widgets for data binding, data selectors to optimize Widget rebuilds, and full API code completion.
  9. Overview of Firebase In-App Messaging for Flutter

    Firebase In-App Messaging allows developers to engage active users by sending targeted, contextual messages (such as cards, banners, modals, or images) to encourage the use of key app features. Common use cases include prompting subscriptions, highlighting sales/coupons, providing game tips, or encouraging social shares. Messages can be configured with specific triggers to ensure they appear at the most beneficial moment for the user.
  10. Choose a testing strategy for Firebase Flutter apps

    Depending on the goal, there are two primary ways to test Firebase integrations in Flutter:

    1. Unit and Widget Tests: Use Fakes to simulate Firebase library behavior. These tests are faster to run and easier to maintain but do not use actual Firebase services.
    2. Integration Tests: Use the actual Firebase service or the Firestore Emulator. These are more thorough but run slower and require more configuration.
  11. Manage custom TensorFlow Lite models with Firebase ML Model Downloader

    The Firebase ML Model Downloader plugin allows developers to deploy custom TensorFlow Lite models to Firebase. It ensures users always have the best-available version of a model by downloading it only when needed and automatically updating it. Once the model is downloaded via this plugin, it can be interpreted using packages such as tflite_flutter.
  12. Automatically track screen views in Flutter

    Google Analytics automatically tracks screen transitions by logging a screen_view event when a UIViewController (iOS) or Activity (Android) comes into focus. These events are automatically tagged with firebase_screen_class and a generated firebase_screen_id. This is the default behavior for apps that use distinct native controllers/activities for each screen.