(CRUD)📱Create & Store User Data • Firebase x Flutter Tutorial ♡
HTML-код
- Опубликовано: 8 сен 2024
- 💰 I'll develop your MVP app: mitchkoko.app/mvp
📱 Code: mitchkoko.app/
🎓 Flutte Beginner Course: • 📱 FULL Flutter Beginne...
💌 Email: business@mitchkoko.app
~;
/ createdbykoko
/ createdbykoko
/ createdbykoko
/ mitchkoko
~;
💬 Chat App w/ Notifications • mitchkoko.gumroad.com/l/ChatAppMasterclass
📱 Flutter Masterclass • mitchkoko.app/
🔥 I'm coding a startup.. www.patreon.com/mitchkoko
You might want to watch the previous videos first 👨🏽💻
1. Minimal LOGIN UI - ruclips.net/video/aJdIkRipgSk/видео.html
2. Login & Logout - ruclips.net/video/TkuO8OLgvkk/видео.html
3. Sign Up Users - ruclips.net/video/Mfa3u3naQew/видео.html
4. Reset Password - ruclips.net/video/Sp4_2zi0kZg/видео.html
Firebase Setup for IOS - ruclips.net/video/hy0NtR0NW4Q/видео.html
Firebase Setup for Android - ruclips.net/video/sz4slPFwEvs/видео.html
Next pls add loading indicators.
hi my web app and android emulator works fine but my apk file that installed on my phone is not connecting to firebase . when im try to sign in or up this error pops up:[firebase_auth/unknown] com.google.firebase.j:an internal error has occurred.[json conversion failed! ] failed to parse error for string[ Error 403 (Forbidden)!!1 ...]
@@sardsiders6862 you have to set application on your firebase database. ask me here if you stuck.
@@Baret1xxx i did that , even entered sha1 , sha256. android manifest.xml permissions , googlesevices.json, firestore , firestore rules read and write , sdk setup configured
@@sardsiders6862 hmmm, wierd. maybe try to create new database and connect again. or maybe create fresh project and try to connecto to fresh database so you can rule out where the problem is.
I'm grateful that you provided this. Easy to understand and effective.
What a channel 👏🏻
Keep Moving Bro I appreciated to U ❤
Hi, I'm from Chile and I've been looking for quality material on flutter for a long time. I thank you for your work, far the best I found on the subject.
If anybody cant see the users data in database just stop your app and rebuild it again. If any errors were encountered in app/gradle change minsdkversion 21
Correct great comment Kushal 💜
@@createdbykoko Tq Mitch hope you bring more worthy quality tutorials !! ;-)
@@kushal6333 more to come! 💜
Thanks Mitch for this series of tutorial, really help me out a lot man, appreciate it so much !!
For those who are having problem on writing into firestore database, you might probably create the database in production mode, what you need to do is go to the rules setting in firebase, set it like this :
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
This is the easiet video the understand the basics, You just explain this so simply - THANKS a ton ❤
I love that you exist. THANK YOU
Haha thank you ❤️
You need to enable multidex support if you are unable to write to firestore from your android device/emualtor. Simple stop the app, open terminal, write 'flutter run' and it will prompt you to enable multidex, press y and it's done.This should probably fix the issue.
Thank you, saved me a lot of research time :)
Super thanks for these videos. Short, simple and easy to digest. Keep going!
Thanks for the tutorial as a beginner I really appreciate your work you made it look incredibly simple. Your channel is going to grow very big.
Thank u! Glad it helps. 💜💜❤️
omg thank you so much bro. i spent 1 day to solve this one
learning with your background music 😊😊😊😊😊😊,, thank you so much
These videos are amazingly helpful as always!
Beautifully explained. thank you!!
what a peaceful guy
✌🏽😂
Anyone going through this and getting issues with the creation of the Auth User being fine but the saving of the details not working?
I was getting an exception 'Unable to establish connection' whilst getting this to work.
Hopefully you can use my comment as a timely reminder to make sure you preiodically run 'flutter clean' and 'flutter pub get' as that's what solved my issue in the end. Developing apps like this which require adding new dependencies every now and again can throw up issues like this, so make sure you clean and get when experiencing weird issue before you tear your hair out
Bro,
Thanks for the awesome tutorials, really like how you're able to easily explain what you're doing.
Look forward to more in this series.
No problem :) more to come 👨🏽💻
I just discovered your channel
Super clear and helpful tutorial
Chill voice, explainations and music
All of it is awesome 👍
Your videos have been much more useful than the outdated angela yu course for me, thank you very much!
wow that is great to hear haha
Mitch - thanks for putting these together and releasing them to the public. Very helpful and you do a nice job explaining what's going on. I do have a quick question, though. When you store the user data and then read it back for display in the ListTiles, I notice you're not writing the data into an "object" - you're just reading the raw json data and writing the field contents to the various ListTile fields. Can you discuss the pros/cons of doing it that way vs. writing a "User" class and then using the Firebase data to create new instances of "user"?
Mitch thank you for the vid, I have a question tho, you mentioned to just use a firestore database in test mode and not production mode. Is there a reason why?
I came here for the extra controllers. I have not applied it yet but thank you man. I already think it would work for me😁😁. I love how you teach. If you have created a video how to retrieve the data saved in collections to users screen in form of news or articles, please send me the link.
Also, how I can make a particular user see text fields that other users can't see.
Will try to Crack these myself but nothing bad in learning from someone with experience. My goal is to add a news section that I can update from admin panel to my app. So, I plan to use what I know so far to do that, and learning this now, will be of great help.
Thank you sir.
good one, this help me as a beginner in flutter. thanks for making it easy
i followed every step but the firebase console won't create a data collection automatically, and it seems to be a problem with many others besides me , i was wondering if it's due to the new update or something of that sort
Absolute Legend!
Keep up the fabulous work!
Thanks haha means a lot to me.
thank you .
Just the video i needed. Thanks mate
thanks for such a great tutorial, we appreciate it 🔥🔥🔥🤝
Love your videos Mitch
Thank you man for your great tutorials 💚!!
no problemo 💚
i love your course thanks a lot!
Hey Mitch! Thanks for this awesome video. Your videos have been so helpful and still do. I’m wondering if you could do a video on how to add more user data (update user data) to the currentUser on another screen after a successful signin/signup.
Regards,
just thanks once again :D
💜 No problem!
Thank you, Mitch Koko. Your videos are very nice and clear. Thank you again for sharing such knowledge to all. But how to use date of birth field instead of age. Can you make video on that.
awesome content man, keep it up!
Sweet.... Just sweet. Love you man ❤
❤️❤️❤️
Can you please upload a video on how to add the details of users with the same Authentication id? ie the UID ? please
Mitch please make a video on how to use git and GitHub
Big thank you for your Videos.
I have a question:
How do i set the uid from the currentuser(the new createt one) in the addUserDetails ?
Thanks man... Your videos are awesome.. 👍
bro pls also make full flutter app development videos like starting till end including database/backend as well.. this is what many other youtubers also do but they don't explain the code well.
Hi,
Thank you for the video... it has saved me.
How can I pick the value of the checkbox to store along with the user's information during sign up ?
I want more
Nice videos! Thank you
your are great man. ❤
Can you please do a tutorial on how to fetch a single user data I’ve been trying to figure the code out for months thank you 😢
🔥🔥🔥❤️Let’s keep going✊
So simple but accurate
Thank you for this tutorial really useful.
A question
Can we use images like get images from the user.
And how to make the data easy to use to put it on excel maybe
Keep going ❤️❤️
Please ,Make video how to create listing directory app ♡
Nice job mate
❤
Thank you for this tutorial but what to do if we want to show more data of users like name and age on screen also. Please help me in this.
Sir, can you please share how can we insert a list of map values inside the firestore document
Thank u 👍
using sqflite database code you can explain it
thnx
can u pls tell me where u have defined the data() method used in snapshot.data!.data() as Map;
nice. good job
👨🏽💻✌🏾
Super 🔥🔥
When I sign up, only email and password inserted into the authentication but none of the data inserted into the database TT have seen the comments saying I should have the variable of each controller same in the method but not working tooTT
same
Thanks bro
My pleasure lucas 👨🏽💻❤️
AoA mitch koko Sir this video same code to enter butt cloud firestore not add data kindly please describe your mistake
You are really awesome 😘
Haha thanks 👨🏽💻
this was good thou
@@PacifiqueShemaBashyitsi thanks. Did it help u?
Hey, great work,
I would like to know if its possible to create non-user data, and how will the funtion 'addUserDetail' look.
What i'm trying to say is that i would like to save the Registration, but the data I put in database is smth else, like Quantity of Objects and the price for example
I somehow figured it out, I used AlertDialog, and placed there TextFields with button, and the function is + - like you.
Can you tell why authentication and firestore data which is being stored after signup has different Doc Ids.
Shouldnt they be the same?
Correct me I know i'm doing something wrong but while fetching data of one user i'm having trouble.
Also i enjoy all of your work.
Thank's for making such cool videos.
Yes that's how it should be done but it has to be done manually and he's trying to keep it simple.
In the put request to Firestore you can name the document (aka the entry in the database). There plenty of info about that in the firestore docs.
It's good practice to name it the same as the user id so it's easy to fetch the info as needed
instead of showing the user email in the home screen, is there a way to show the name of the user instead?
bro my data is nt saving in firestore i did all the work you done?
solve it ?
Hey Mitch I want to know how to display details of two different users. That means, there is a person called Mitch who registered to the app providing his details. Also, there is another person called Koko who registered to the app providing his details. Now I want to know how to display data when Mitch logged in to the app. All this data should belong to Mitch. If Koko login, that data should belong to Koko.
Sure thing Shansala! Coming soon
@@createdbykoko 💝
Not sure if he ever made a video about this
What you would do is name the document (data base entry) the same as the user id. (Plenty of info in the firestore docs)
Then when you need that info, you search the database for the record that matches the logged in users user id
how to add gender selected please
Great video ! So helpful, how would you do this with a phone number please
i did the same thing but there is no data in the firestore just login
adding cloud_firestore in yml file make build extremely long
Anybody else having issues with your app duplicating the list of users with every hot reload?
I followed this tutorial closely. However the data did not end up in the database. Is there some other pre-step that has to be taken? Some kind of verification with Firebase, Firestore, etc?
Users are added to Authentication/Users. But no data gets added to database.
@@epi_sto_letes Make sure the order of the items in the addUserDetails String and the list below it are the same. let me know if that helps.
login and register code is working but on my register code, users names are not add to firestore
hey I'd love to help but I'm going to need more information from you! But first please make sure you followed the tutorial and didn't miss anything. Sometimes that can happen
why the user data is not added in my firestore? pls help anyone
Check each step carefully and make sure u didnt miss anything. Let me know if it still doesnt work
Is anyone having issues with minSdkVersion after adding cloud_firestore?
ya me, you solve that?
@@dorstern245 Hey, I ended up following other tutorials afterwards, and I just saw Firebase has launched its own package for login UI and backend connection through Flutter. But in general it seems you'd have to go through changing the sdkVersion here and there, once asked, to make things work.
So whenever I get them signup after I added the firstname and lastName things. the app crashes and doesn't put the info in the database, but it does put it in the authentication area still. can you help me?
Hello, I’m going to need more information to help you out. But make sure to follow the steps correctly. A big part of coding is trying to isolate the problem, so keep checking if the code is working until you get to the point that it crashes, then we can try to find exactly what the issue is. Also in many cases, i recommend just starting again from scratch. Let me know how it goes!
@@createdbykoko well it was working the entire time I was working on it. until I stated using the cloud firestore, I am using vscode but I am using an android emulator because I do not own an apple macbook. But when I woke up this morning, the app won't run at all here is the error:
│ C:\Users\User\Desktop\Flutternewstuff\SpinTheBible\stb_flutter\android\app\build.gradle:
│ android {
│ defaultConfig {
│ minSdkVersion 19
│ }
│ }
Note that your app won't be available to users running Android SDKs below 19.
Alternatively, try to find a version of this plugin that supports these lower versions of the
Android SDK.
i've tried changing the min Sdk version to 21 and I followed the setup tutorial for android which worked but it now says it had an error in the builf.gradle file on line 28 in the app folder.
@@createdbykoko So I removed the cloud firestore stuff and its working now. but I can't store data in cloud firestore
@@quackshadow still facing the problem ?
after adding firebase database dependency into pubspec.yaml file I can't launch the app. I'm getting error like this
Launching lib\main.dart on SM A032F in debug mode...
main.dart:1
ERROR:D8: Cannot fit requested classes in a single dex file (# methods: 102318 > 65536)
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
The number of method references in a .dex file cannot exceed 64K.
Learn how to resolve this issue at developer.android.com/tools/building/multidex.html
at com.android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.java:151)
at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:138)
at com.android.build.gradle.internal.tasks.DexMergingWorkAction.merge(DexMergingTask.kt:859)
at com.android.build.gradle.internal.tasks.DexMergingWorkAction.run(DexMergingTask.kt:805)
at com.android.build.gradle.internal.profile.ProfileAwareWorkAction.execute(ProfileAwareWorkAction.kt:74)
at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:66)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:62)
at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:100)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1.lambda$execute$0(NoIsolationWorkerFactory.java:62)
at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:44)
at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:41)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:59)
at org.gradle.workers.internal.DefaultWorkerExecutor.lambda$submitWork$2(DefaultWorkerExecutor.java:205)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:187)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.access$700(DefaultConditionalExecutionQueue.java:120)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner$1.run(DefaultConditionalExecutionQueue.java:162)
at org.gradle.internal.Factories$1.create(Factories.java:31)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:249)
at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:109)
at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:114)
great vid but you didnt show how to access the data
10:00
Github Anyone find the project?
♥️♥️
❤
😛 thanks shansala
I have a problem at this level, my data is automatically saved it is not redirected to the database
message error on IDE
FirebaseAuthException ([firebase_auth/email-already-in-use] The email address is already in use by another account.)
hi my web app and android emulator works fine but my apk file that installed on my phone is not connecting to firebase . when im try to sign in or up this error pops up:[firebase_auth/unknown] com.google.firebase.j:an internal error has occurred.[json conversion failed! ] failed to parse error for string[ Error 403 (Forbidden)!!1 ...]
Just Curiosity.🫣 Can anyone collect user password too???