Flutter + Firebase Admin SDK: Adding Users; Updating Passwords. Each time you add a new user as the admin, you're logged out and the new user is logged in. Also, there is no way to update the user's password on the client.
Hello everyone, imagine that you have developed an enterprise-level Flutter application(client app) using firebase as the backend, and you are responsible for adding, updating and deleting users.
You will quickly realized that doing these from the client app has its limitations.
In this post, I will present to you with my solution for fixing these issue using the Firebase Admin SDK.
This project uses firebase streams and the provider package to manage state; the moment a document is updated in Firestore it will be reflected on the client/Flutter app once the user has internet connection.
Also, the app has options for dark and light themes; 😀 see the post Flutter Light and Dark Theme to implement in your app.
We won't dive into the Flutter/Dart code in-depth because the focus is the firebase aspect, however, below are images of the folder structure and the final UI. You can get the full source code at Github Link
Ensure you have Node.js installed. Login to firebase using your credentials with the commands below:
npm install -g firebase-tools npm install -g firebase-tools firebase login
Run the command, firebase init from that folder select functions at the prompt then select the corresponding project. Lastly, choose TypeScript as the language.
Flutter and Firebase are the perfect duo for rapid mobile development; using both helps you the bring more value to your users while reducing lengthy configurations.
Maybe in the future, Google will give us the ability to write cloud functions using dart. 😀
⭐ Source Code Flutter: GitHub Link
Google has announced new flutter 1.20 stable with many improvements, and features, enabling flutter for Desktop and Web
Recently Adobe XD releases a new version of the plugin that you can use to export designs directly into flutter widgets or screens.
ＬＩＫＥ | ＣＯＭＭＥＮＴ | ＳＨＡＲＥ | ＳＵＢＳＣＲＩＢＥ The Firebase Realtime Database is a cloud-hosted NoSQL database that lets you store and sync data between your users in re...
In this Firebase Flutter Tutorial, we wrap the Firebase Storage package into a service to easily manage and upload the firebase storage.
Mastering payments in Flutter - Flutter & Firebase E-commerce APP (Firebase CRUD)