cloud_functions_web
5.2.0, released 5 days ago by firebase.google.com
Web implementation of Firebase Cloud Functions for Flutter web apps
What it does
Provides a web-specific implementation of the Cloud Functions API, enabling Flutter web applications to call Firebase Cloud Functions. It relies on the Firebase web SDK and exposes the same interface as the platform-agnostic package.
AI-written summary of version 5.1.15, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to call Cloud Functions from a Flutter web project
- You already use firebase_core_web and want a single package for all Firebase services
Skip it when
- You are building a non-Firebase backend or targeting mobile only
- You need advanced client-side features not supported by the web SDK
Strengths
- Fully integrated with Firebase web SDK
- No additional native code required
- Consistent API with other Firebase packages
Weaknesses
- Only works on web, not on mobile or desktop
- Requires firebase_core_web dependency
- Limited to features exposed by the Firebase web SDK
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Add cloud_functions_web to pubspec, import package, ensure firebase_core_web is initialized
Alternatives
Packages that do the same job and could replace cloud_functions_web.
- firebase_functions
Define Cloud Functions for Firebase in Dart with support for the Admin SDK and Firestore.
80Compare - firebase_js_interop
Dart wrappers to write Firebase Cloud Functions
65Compare - firebase_admin_sdk
Firebase Admin SDK implementation for Dart server environments
84Compare - google_cloud_storage
A Dart client for Google Cloud Storage.
80Compare
Works with
Packages commonly used together with cloud_functions_web: ones it builds on, ones built on it, and its own family.
- webcloud_functions_web depends on itLightweight bindings for browser APIs via JS interop
- firebase_corecloud_functions_web depends on itFlutter plugin that initializes Firebase and allows multiple Firebase app connections.
- firebase_core_webcloud_functions_web depends on itWeb implementation of firebase_core for Flutter apps.
- firebase_messagingSame familyFlutter plugin for Firebase Cloud Messaging to deliver messages on Android, iOS, web, and macOS.
- firebase_messaging_webSame familyWeb implementation of Firebase Cloud Messaging for push notifications.
- firebase_analyticsSame familyFlutter plugin for Google Analytics for Firebase.
- firebase_crashlyticsSame familyFlutter plugin that sends uncaught errors and crash reports to Firebase Crashlytics.
- firebase_authSame familyFlutter plugin for Firebase Authentication enabling passwords, phone numbers, and identity providers.