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

插件详情v7.0.1

cloud_functions

一个允许您使用 Firebase Cloud Functions 的 Flutter 插件。

AndroidiOSWebmacOS
近 30 天下载
75万
喜欢数
513
Pub 分数
160

安装插件

flutter pub add cloud_functions

插件介绍

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

cloud_functions 包是一个 Flutter 插件,可实现与 Firebase Cloud Functions 的无缝集成,使开发者能够直接从其 Flutter 应用调用无服务器函数。它支持所有主要平台,包括 Android、iOS、Web 和 macOS,非常适合在无需管理服务器的情况下执行后端逻辑。该包提供了一个简单的 API,可用于传入参数调用函数并接收响应,从而通过动态且可扩展的后端操作增强应用程序功能。

适合场景

  • 调用无服务器后端逻辑
  • 在服务器上处理数据
  • 通过自定义函数验证用户
  • 发送通知或电子邮件
  • 处理文件上传/下载
  • 执行复杂的业务逻辑

主要特点

  • 跨平台支持
  • 简单函数调用 API
  • 安全的身份验证集成
  • 实时响应处理
  • 带有详细消息的错误处理
  • 支持 HTTP 和 HTTPS 触发器

适合对象

  • 使用 Firebase 的 Flutter 应用
  • 需要无服务器后端功能的开发人员
  • 需要安全、可扩展后端处理的应用程序
  • 构建全栈Flutter应用的团队
  • 需要实时数据的项目

使用建议

  • 需要 Firebase 项目设置
  • 需要配置正确的安全规则
  • 在移动设备上可能需要网络权限
  • 函数执行依赖于 Firebase 后端的可用性
  • 调试服务器端代码需要单独的工具

原始 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 项

  • cloud_functions_platform_interface^6.1.1
  • cloud_functions_web^5.1.15
  • firebase_core^5.1.0
  • firebase_core_platform_interface^8.1.1

源码仓库

使用此插件的项目

所在榜单