Support Dart in Cloud Functions
Dart is not currently supported in Cloud Functions, so developers need to use more than one language in their code base. Here are some pain points they shared with the Firebase product team about this gap:
- They need to learn another language, and many of them do not have the same expertise in JavaScript as they do in Dart.
- The lack of features and tools, such as Hot Reload and Hot Restart, impacts development speed.
- Developers cannot share business logic and data models across the entire stack.
- Developers cannot use frequently used Dart packages on the server.
-
Christian Kyony commented
Using DDD on the flutter app side, it will be nice to reuse the models on the cloud functions
-
Rafael Collado commented
With the newly added macros feature, facilitating things like json serialization, this seems like the logical next step.
-
Niko Vassilis commented
Flutter is used to increase development speed. Having a production ready "Dart backend" is the missing piece for a new era of app development
-
jimmy harika commented
Im a hobby coder. Flutter and Dart are my first language and framework. I don'thave time or capacity or need to learn Javascript. I would really appreciate its support in firebase. Thanks
-
Francis Amponsah commented
Dart is typed, of course it should be included <(-_-)>
-
Technically Non-Tech commented
Dart should have already been the accepted language for cloud functions.
Learning JavaScript / Typescript just for the sake of writing cloud functions is not viable. -
Samuel Adole commented
We should be phasing out the evil of dynamic typing that is JavaScript on the web. This takes us one step closer
-
scottstoll2017 commented
Dart support for this has long been overdue. We've been making our servers and other backend with Dart for a long time, and the Auth process for Dart has already been streamlined several times. Why have functions not been supported with at least a brute force solution for a v1?
-
Graeme Prentice commented
I'm not very familiar with javascript so having to learn it and use it for some fairly important cloud functions in my Flutter app is time consuming and annoying.
-
Dane Mackier commented
This would be a really impactful feature to implement.
What Flutter did for Dart, this can do for Flutter and Firebase all over.
I would definitely spend a lot of time working with this and sharing content about it.
If you need a product in production to try it out, you can definitely include me in the 0.0.1 release test. I'm willing to risk it for the potential!
-
Luke Pighetti commented
Context switching between Dart and Typescript is very expensive for most engineers. Having a Dart Admin SDK and first-class Cloud Functions integration (with all the expected triggers, console controls, CLI support, logging, etc) would supercharge so many Flutter + Firebase apps and bring vibrancy to this space.
-
Aytunç İşseven commented
This would be a great addition to the FB suite. Being able to reuse Dart models in the cloud functions will be so much more maintainable.
-
Adedokun Emmanuel commented
This will make life easier and reduce context switching between different languages.
-
Pedro Massango commented
I want to be able to use Dart on CF with support for all Firebase Services specially:
Firestore
Auth
Storage
Pubsub
Messaging -
Nate Frechette commented
Being able to share dart code client side and server side would be game changing!
-
ali Hassan commented
i must need cloud function or firebase functions in dart and i also need admin sdk for dark so we can easily do many admin side and function side code in dart instead of using JavaScript or other supported languages
-
Nabeel Parkar commented
This would not only be a great step forward for backend Dart, but also generally a huge win for Firebase since Flutter and Firebase have always been such a good combination, having to write JS pulled away from that
-
sharif mohamed commented
i was just about to suggest this and i totally agree with you, i wanna use one programming language for my flutter apps,just dart, i don't like switching between dart frontend and js or typescript for the cloud functions, this would be a helpful feature for us devs who want to use just dart for our apps
-
Aditya Majethia commented
This should be a priority for the Firebase Team. Dart has better performance & better type safety. And it would make integration with Flutter seamless.
-
Mark Videon commented
It's less a position of looking for a "one-fits-all" language, and more that Dart fits just fine, and it isn't supported because it doesn't have the legacy that JS does.
I suspect that the more Flutter moves into "game development space" the more desirable having Dart support in Firebase services will be.