搜尋套件、儲存庫與 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

原始碼儲存庫

使用此套件的專案