搜索插件、代码仓与 APP 分类

插件详情v13.0.1

firebase_database

Firebase Database 的 Flutter 插件,一个托管在云端的 NoSQL 数据库,可在 Android 和 iOS 客户端之间实现实时数据同步,并支持离线访问。

AndroidiOSWebmacOSWindows
近 30 天下载
22.7万
喜欢数
650
Pub 分数
140

安装插件

flutter pub add firebase_database

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Firebase Database 是一个 Flutter 插件,为移动和 Web 应用提供实时、云端托管的 NoSQL 数据库访问。它可在 Android、iOS、Web、macOS 和 Windows 客户端之间实现无缝数据同步,并具备内置离线支持。数据更改会立即反映在所有连接的设备上,非常适合协作或实时更新的应用程序。该插件直接集成 Firebase 生态系统,无需自建服务器基础设施即可提供安全、可扩展的后端功能。

适合场景

  • 实时聊天应用
  • 实时比分板和仪表盘
  • 协作文档编辑
  • 离线优先的移动应用
  • 在设备间同步用户偏好

主要特点

  • 实时数据同步
  • 离线数据持久化
  • 跨平台支持
  • 基于 JSON 的简单数据结构
  • 通过 Firebase Auth 实现安全访问规则

适合对象

  • 需要实时更新的应用程序
  • 使用 Firebase 生态系统的开发者
  • 需要离线功能的项目
  • 初创公司快速构建MVP
  • 优先考虑快速开发的团队

使用建议

  • 需要 Firebase 项目设置
  • 数据结构必须是扁平的,以获得最佳性能
  • 频繁更新可能导致高带宽使用
  • 与SQL数据库相比,查询功能有限
  • 安全规则必须仔细配置,以防止未经授权的访问

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Flutter + Firebase logo

FlutterFire

Follow on Twitter Maintained with Melos OSSF scorecard


[Changelog] • [Packages]


FlutterFire is a set of Flutter plugins that enable Flutter apps to use Firebase services. You can follow an example that shows how to use these plugins in the Firebase for Flutter codelab.

Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase. Flutter is used by developers and organizations around the world, and is free and open source.


Documentation


Stable Plugins

Name pub.dev Firebase Product Documentation View Source Android iOS Web MacOS Windows
Analytics Analytics pub.dev badge 🔗 📖 firebase_analytics ✔ ✔ ✔ β N/A
App Check App Check pub.dev badge 🔗 📖 firebase_app_check ✔ ✔ ✔ β N/A
Authentication Authentication pub.dev badge 🔗 📖 firebase_auth ✔ ✔ ✔ β (*)
Cloud Firestore Cloud Firestore pub.dev badge 🔗 📖 cloud_firestore ✔ ✔ ✔ β (*)
Cloud Functions Cloud Functions pub.dev badge 🔗 📖 cloud_functions ✔ ✔ ✔ β N/A
Cloud Messaging Cloud Messaging pub.dev badge 🔗 📖 firebase_messaging ✔ ✔ ✔ β N/A
Cloud Storage Cloud Storage pub.dev badge 🔗 📖 firebase_storage ✔ ✔ ✔ β (*)
Core Core pub.dev badge 🔗 📖 firebase_core ✔ ✔ ✔ β (*)
Crashlytics Crashlytics pub.dev badge 🔗 📖 firebase_crashlytics ✔ ✔ N/A β N/A
Data Connect Data Connect pub.dev badge 🔗 📖 firebase_data_connect ✔ ✔ ✔ N/A N/A
In-App Messaging In-App Messaging pub.dev badge 🔗 📖 firebase_in_app_messaging ✔ ✔ N/A N/A N/A
Installations Installations pub.dev badge 🔗 📖 firebase_app_installations ✔ ✔ ✔ β N/A
Performance Monitoring Performance Monitoring pub.dev badge 🔗 📖 firebase_performance ✔ ✔ ✔ N/A N/A
Realtime Database Realtime Database pub.dev badge 🔗 📖 firebase_database ✔ ✔ ✔ β N/A
Remote Config Remote Config pub.dev badge 🔗 📖 firebase_remote_config ✔ ✔ ✔ β N/A

(*) for development only. Production on Windows is not supported.

Preview Plugins

Name pub.dev Firebase Product Documentation View Source Android iOS Web MacOS
ML Model Downloader (deprecated) ML Model Downloader pub.dev badge 🔗 📖 firebase_ml_model_downloader ✔ ✔ N/A β

Issues

Please file FlutterFire specific issues, bugs, or feature requests in our issue tracker.

Plugin issues that are not specific to FlutterFire can be filed in the Flutter issue tracker.

Contributing

If you wish to contribute a change to any of the existing plugins in this repo, please review our contribution guide and open a pull request.

所属分类

依赖

依赖清单 4 项

  • firebase_core^5.1.0
  • firebase_core_platform_interface^8.1.1
  • firebase_database_platform_interface^0.4.2+9
  • firebase_database_web^0.2.9+16

源码仓库

使用此插件的项目