Flutter Firebase Authentication - The Clean Way

  Рет қаралды 134,422

Robert Brunhage

Robert Brunhage

Күн бұрын

Пікірлер: 326
@RobertBrunhage
@RobertBrunhage 4 жыл бұрын
Hope you enjoyed the video! I didn't cover showing the error messages as depending on your implementation you may want to do it differently. But this should get you up and running quickly with Firebase Authentication!
@techwithdenis
@techwithdenis 4 жыл бұрын
Having issues trying to show error message
@kelvinwuko
@kelvinwuko 4 жыл бұрын
Thanks for your clean and useful tutorial, but how can I show the error message when the class is stateless? thanks
@techwithdenis
@techwithdenis 4 жыл бұрын
@@kelvinwuko The way I did mine (might not be good but might help you)... I created a new class that extends ChangeNotifier class, then I created 2 private fields called String _error ... i den created setters and getters to use and access the private fields from outside the class. Inside the catch block of the try catch in the authenticationservice class, I call the setter for the _error and set e.message.tostring() to the _error then I return "error" In my login.dart file, I do a check to see if the return from the authenticationservice == "error" I use the _error getter to display the error message Looks like a long process but it worked for me, if u don't understand I can send u a snippet of what I did
@sylvesterasiedu
@sylvesterasiedu 4 жыл бұрын
@@techwithdenis Hello Denis, I am interested in your solution, please. Kindly share it with me. My email is: s l y t e t e y [at] g m a i l [dot] c o m
@techwithdenis
@techwithdenis 4 жыл бұрын
@@sylvesterasiedu How should i share it with you cause i integrated it directly in a private project. I can have a short online meeting with you via google meet if you don't mind. Just give me a time i will send you a link, then i can share my screen with you and show you what i did.
@massimuccio007
@massimuccio007 4 жыл бұрын
MOST UP-TO-DATE-COMPREHENSIVE-ALL-INCLUSIVE-FIREBASE-TUTORIAL, EVER!.... Thanx!!!!!!!
@RobertBrunhage
@RobertBrunhage 4 жыл бұрын
Wooo awesome! Thanks I really appreciate it and glad it is helpful! 🎉
@massimuccio007
@massimuccio007 4 жыл бұрын
@@RobertBrunhage DEFINITELY!... there are tons of tutorials out there that explain authentication but none of them seems to include the Initialization part (specially since last firebase update).... and for a NOVICE like me it was crucial..... thanx again!
@abrarahmeda8989
@abrarahmeda8989 2 жыл бұрын
bro does this tutorial have token auth or need to login every time
@phen2841
@phen2841 3 жыл бұрын
Bro I cannot tell you how many pages I've looked at to find such an elegant solution. You've got not just a new subscriber but a fan!!
@RobertBrunhage
@RobertBrunhage 3 жыл бұрын
Awesome glad to hear it helped!
@Zizo1st
@Zizo1st 3 жыл бұрын
In new version of Stream providers you should declare the "initialData" parameter, you can set it to null. StreamProvider( create: (context) => context.read().authStateChanges, initialData: null),
@mikewski4410
@mikewski4410 3 жыл бұрын
I try but it said it can not be null
@zhzh724
@zhzh724 3 жыл бұрын
Thank you bro
@Zizo1st
@Zizo1st 3 жыл бұрын
@@zhzh724 welcome :)
@chipekowasa6571
@chipekowasa6571 3 жыл бұрын
Life saver
@marcosantos9071
@marcosantos9071 2 жыл бұрын
@@mikewski4410 did you solve it? i have the same problem
@acarvey
@acarvey 3 жыл бұрын
That was to the point, no BS, 100% clear and very helpful. Thank you for this. (:
@HMR422
@HMR422 3 жыл бұрын
Wow, I'm speechless, you did in 8 minutes what other people can't in 1 hour. Thanks!
@ianhilliard2578
@ianhilliard2578 3 жыл бұрын
An excellent video! As have many developers I recently migrated to Dart and Flutter and the knowledge you have shared is invaluable. This is the ONLY video or blog post I have found that gives a good foundation to start building a complete authentication service. Thank you.
@abrarahmeda8989
@abrarahmeda8989 2 жыл бұрын
bro does this tutorial have token auth or need to login every time
@1140hopeful
@1140hopeful 3 жыл бұрын
Wow your content is getting so much better over time. Keep it up!
@ephysio7357
@ephysio7357 4 жыл бұрын
Been waiting for this since two weeks and haven't been disapointed ! Thank you :D !
@georgeansong9348
@georgeansong9348 3 жыл бұрын
I keet getting Error: Could not find the correct Provider above this Authenticate Widget, any help
@rcholding5383
@rcholding5383 3 жыл бұрын
Coming across same error. Please help
@rcholding5383
@rcholding5383 3 жыл бұрын
Raised a question - stackoverflow.com/questions/67247513/could-not-find-the-correct-provideruser-above-this-authenticationwrapper-widge
@raghav042
@raghav042 3 жыл бұрын
Provider
@tadaspetra
@tadaspetra 4 жыл бұрын
Really great video! I really love the new style 😊
@RobertBrunhage
@RobertBrunhage 4 жыл бұрын
Thanks man, already working on the next!
@BrendenBishop
@BrendenBishop 3 жыл бұрын
Any chance you can provide an update to this? After Flutter 2.0, for some reason I always get the following...Error: Could not find the correct Provider above this AuthenticationWrapper Widget
@rcholding5383
@rcholding5383 3 жыл бұрын
Hello Brenden, did you find an answer to this? Thanks! I raised a question in StackOverflow as well stackoverflow.com/questions/61168675/providernotfoundexception-error-could-not-find-the-correct-providerlayoutdata
@BrendenBishop
@BrendenBishop 3 жыл бұрын
@@rcholding5383 Yes, the types are very specific so in null safety 2.0 world, the type is no longer its doing that allowed me to find the provider.
@sahilkancherla2890
@sahilkancherla2890 3 жыл бұрын
@@BrendenBishop I am still getting the "Could not find the correct Provider above this AuthenticationWrapper Widget" error. Could you go into further detail about how you resolved it?
@sajidAli-sz4kn
@sajidAli-sz4kn 3 жыл бұрын
@@BrendenBishop hello, I'm having this problem except I get could not found the correct Provider(AunthenticationService) I'm following this tutorial. Can you help me out please, I have added ? Sign where I can but still showing the same error. One more thing when I hot reload I get this error one time but when I hot restart I get this error 2 times. Please help me out, it will be very kind of you
@mohamedhussein5080
@mohamedhussein5080 3 жыл бұрын
To the point finally. Thanks man!
@ashrafahamed4027
@ashrafahamed4027 3 жыл бұрын
Great road to 100k subs
@chipekowasa6571
@chipekowasa6571 3 жыл бұрын
This is the one you're looking for! Best Firebase Auth Setup for flutter! Awesome!
@thisisjaymehta
@thisisjaymehta 3 жыл бұрын
Need a null safety version of this please.
@deepseadiver971
@deepseadiver971 3 жыл бұрын
I 2nd that!!! Hope to see an updated video coming soon. I keep getting hella errors..
@abelsajigeorge8553
@abelsajigeorge8553 3 жыл бұрын
@@deepseadiver971 we definitely need one i third that
@marcosantos9071
@marcosantos9071 2 жыл бұрын
i forth that... could anybody do it?
@joyanngitau6682
@joyanngitau6682 2 жыл бұрын
ikrr...we need a new one
@learnwitharslan1049
@learnwitharslan1049 3 жыл бұрын
congrats you earned a subscriber
@behzodfayziev7804
@behzodfayziev7804 4 жыл бұрын
Thanks a lot for UPDATES!!! I have been waiting for a long time)))
@RobertBrunhage
@RobertBrunhage 4 жыл бұрын
🙂
@arthurlage8662
@arthurlage8662 3 жыл бұрын
Thank you from Brazil man
@idirtalem3146
@idirtalem3146 3 жыл бұрын
I have been looking for this for a long time, thank you sir.
@margeo20
@margeo20 3 жыл бұрын
Hello mate. As a signed in user, when reloading the page, for a sec before loading the HomePage() the SignInPage() appears and then it goes to the HomePage. Is there a way to prevent showing the SignInPage in that case?
@william_chidube
@william_chidube 3 жыл бұрын
Maybe set a default state that shows first no matter what. Something like a busy state will do. Neither sign in nor signup should be accessed until login state is ascertained. Just a suggestion. I'm sure you've solved this by now
@nehrydedoro
@nehrydedoro 4 жыл бұрын
one of the best concise and clear tutorial of firebase auth double thumbs up ! 👍👍
@silas_wolf
@silas_wolf 4 жыл бұрын
This content is absolutely amazing! Thank you so much!
@RobertBrunhage
@RobertBrunhage 4 жыл бұрын
Glad you enjoy it!
@burakbirer
@burakbirer 3 жыл бұрын
Hi @Robert Brunhage thank you for amazing videos. How can we add a circular progress indicator or a loading state this clean architecture? Do we need a future builder in the ui or is there a better way for this one?
@arnabbiswas8414
@arnabbiswas8414 3 жыл бұрын
Clean explanation
@vijayprajapati7484
@vijayprajapati7484 3 жыл бұрын
Thank you for Easy Explanation
@haripriyabaskaran5498
@haripriyabaskaran5498 3 жыл бұрын
Nice editing.. Want to see more such videos
@RobertBrunhage
@RobertBrunhage 3 жыл бұрын
More coming!
@schmoogen
@schmoogen 3 жыл бұрын
Would it be recommended to rely on this multiprovider method for most Firebase services? I imagine managing Firestore data calls this way would also be relatively seamless.
@nsiddiqi7997
@nsiddiqi7997 2 жыл бұрын
The name 'AuthenticationService' isn't a type so it can't be used as a type argument. This is what I got. Can you please recommend a way to resolve this problem.
@someguy007
@someguy007 4 жыл бұрын
Great vid thanks. At 2:20, u have SignIn(email, password) and same with SignUp. Where do the full details usually go for Signup? Like names, nicknames, dob etc? would u just extend the parameters of SignUp to include those Strings? and if so, what is the method from the firebaseAuth.class?
@veyselaksin
@veyselaksin 3 жыл бұрын
Did you find any answer? I'm wondering about that too
@RajeshPachaikani
@RajeshPachaikani 3 жыл бұрын
Can you make a null-safe version? Thanks a lot for this one.
@Hari-mt8xo
@Hari-mt8xo 2 жыл бұрын
In main.dart first line Add //@dart=2.9
@kuba01251
@kuba01251 4 жыл бұрын
Hi. Have you ever had problem like this 'Ignoring header X-Firebase-Locale because its value was null.'?
@codehermano8002
@codehermano8002 3 жыл бұрын
have same problem
@kuba01251
@kuba01251 3 жыл бұрын
​@@gabrielchenbr Try to turn on wi-fi connection in your smartphon if you run it on your phone. I know it's stupid but it worked for me.
@GhostMe6
@GhostMe6 3 жыл бұрын
Did someone fix the issue? I'm stucked with this problem and is not cause about my Wi-Fi connection, because i'm debugging on my physical cell phone, also i tried running the release version but stills not working.
@princesanjivy9701
@princesanjivy9701 4 жыл бұрын
This what I've been looking for 😍
@SAURABHGUPTA_DINOSAUR
@SAURABHGUPTA_DINOSAUR 3 жыл бұрын
what if i want to display my onboarding page first rather than wrapper?? LOGIN doesn't works that way.....why???
@bigmouthstrks
@bigmouthstrks 4 жыл бұрын
Amazing video!! very short and precise. But I'm having trouble with this line of code: // Button for loggin in // onPressed: () { context.read().signIn(); } The word READ is underlined in red, and that is the only error. I checked the code and it's exactly like yours, any idea? Thanks a lot!!
@bigmouthstrks
@bigmouthstrks 4 жыл бұрын
UPDATE: In order for 'read' method to work you only need to import 'package:provider/provider.dart' which also has to be on your .yaml file
4 жыл бұрын
@@bigmouthstrks Gracias!!!
@cnorse
@cnorse 3 жыл бұрын
Thanks!
@kithusshandraveendran6981
@kithusshandraveendran6981 3 жыл бұрын
@@bigmouthstrks how to solve it?
@bigmouthstrks
@bigmouthstrks 3 жыл бұрын
@@kithusshandraveendran6981 importing provider in the view where you are using the user login and algo add provider dependency on your pubspec.yaml file
@cinehaus9109
@cinehaus9109 4 жыл бұрын
Really nice, thank you for this update tutorial. I just wish you would also cover how to show the error messages. Currently it just throws Platform Exception and crashes the app with 'Extension host terminated unexpectedly'. Also it would be really nice if you could add to this tutorial and demonstrate how to change state to a signup screen (perhaps via a FlatButton next to the current RaisedButton), making this into a more complete and useful minimal starter code for Firebase Auth.
@RobertBrunhage
@RobertBrunhage 4 жыл бұрын
Do you have the latest Firebase auth version? As the Platform Exception should not happen and in the code we catch the FirebaseAuthException and returns its message. To handle that you would just await the call and display the message. About the signUp I didn't cover as it's more or less the same as signIn but just a matter of calling the signUp method instead. Thanks for the feedback and taking it all in to consideration! Next time I will do a more complete one!
@sadhlife
@sadhlife 4 жыл бұрын
Damn, nice video, really wanted something like this. Quick question though: how would you replace the initial load with a splash screen instead of showing the login page by default?
@techwithdenis
@techwithdenis 4 жыл бұрын
You can create a splash screen then load it by default but set a timer say 5-10 seconds depends on what u want the when the timer is over redirect to the login page
@sadhlife
@sadhlife 4 жыл бұрын
@@techwithdenis that's a bad idea
@techwithdenis
@techwithdenis 4 жыл бұрын
@@sadhlife are u trying to show a splash screen or u want to customize your initialization screen (the white loading screen that comes up once you start the app)?
@nimas7840
@nimas7840 3 жыл бұрын
Thanks, man. Helpful.
@kanogl
@kanogl 3 жыл бұрын
Great video! thanks for this content. I had a few problems figuring out how to import provider, but afte googling a bit and boxing with the warning 'paramenter initialData is required' it worked. Thanks again.
@vedantbalachandra1304
@vedantbalachandra1304 3 жыл бұрын
I didnt understand that step when u used Provider can from where u got that dependency
@jorgewandersantanaurena422
@jorgewandersantanaurena422 3 жыл бұрын
Awesome content. Thanks.
@AwesomeasimJunaid
@AwesomeasimJunaid 4 жыл бұрын
Thanks a lot for helping !
@adamthedev
@adamthedev 4 жыл бұрын
Epic stuff man. Thanks
@antonygush2425
@antonygush2425 4 жыл бұрын
Hi Robert. Thanks for the video. I am new to Flutter. May i know what is the purpose of adding widgetflutterbinding at the top. Documentation is bit confusing me... :( some flutter examples don't have that code at all, so i am confused what is that code exactly doing.
@RobertBrunhage
@RobertBrunhage 4 жыл бұрын
It's a way to set the glue between the widgets and the Flutter engine before it has been done itself. This happens automatically a bit after the main method is called. But as we want to initialize a class async then before that is done we need to say: "Hey, can we do the initialization now and after that we initialize the class" My understanding is that the binding is required to call native code, but if anyone has a better explaination be sure to jump in!
@antonygush2425
@antonygush2425 4 жыл бұрын
@@RobertBrunhage Awesome. Its clear now :) Thanks again.
@Tom-um8mr
@Tom-um8mr 2 жыл бұрын
Very nice tutorial!
@MaxS1988
@MaxS1988 4 жыл бұрын
Great tutorial, thank you! I did struggle a lot with the check if the user email is already verified upon login, combined with the rerouting to a verification screen to trigger the resend of the confirmation mail, in case the user is not verified. Any chance you could add that or give a hint on what would be the cleanest way in your opinion? Many thanks - keep up the great work!
@vishaldrajpara5343
@vishaldrajpara5343 3 жыл бұрын
Which extension you're using for the special symbols....
@klutch4198
@klutch4198 4 жыл бұрын
great job!
@saimonsaimon6205
@saimonsaimon6205 4 жыл бұрын
Very clear and very useful for me as a beginer.thanks sir.post phone otp login in clean way.
@kunalbhalgat4004
@kunalbhalgat4004 3 жыл бұрын
i am getting error in this line create: (_) => AuthenticationService(FirebaseAuth.instance), my error is The named parameter 'create' isn't defined.
@koredebello6785
@koredebello6785 3 жыл бұрын
Same here man
@nsiddiqi7997
@nsiddiqi7997 2 жыл бұрын
Thank you for sharing such valuable information. However, Firebase code for adding a new User and Sign-in authentication methods are constantly changing. This deprecation can be seen in so many online Videos on this subject. I tried your code and there is deprecation where certain lines are not recognized, for example, "context.read()" is not recognized. Can you please suggest a fix for this?
@gayanlakmal2469
@gayanlakmal2469 3 жыл бұрын
Super Cool Thanks a lot :)
@92blckt
@92blckt 4 жыл бұрын
Hey, just a doubt... if you initalize flutter at the main() you dont need to do it anymore, right? in other screens where will be using storage and fiurestore too...
@RobertBrunhage
@RobertBrunhage 4 жыл бұрын
Nope, only once :)
@92blckt
@92blckt 4 жыл бұрын
@@RobertBrunhage Thank you Robert, great content =)
@polberus100
@polberus100 2 жыл бұрын
When i use your fonction "Future signIn" , I got null problem. Why ?
@vyshnavsasidharan1084
@vyshnavsasidharan1084 3 жыл бұрын
this really helped me.. Thank you bro
@areejalazzani6186
@areejalazzani6186 4 жыл бұрын
THANK YOU
@aonerd
@aonerd 3 жыл бұрын
Thank you very much, very clear
@kaivalpatel3990
@kaivalpatel3990 4 жыл бұрын
hey robert, can u please tell which font you use in vscode?
@RobertBrunhage
@RobertBrunhage 4 жыл бұрын
JetBrains Mono
@mansour.o2652
@mansour.o2652 3 жыл бұрын
Thanks a lot !!! you're doing hight quality content
@DavidHust
@DavidHust 2 жыл бұрын
Why does _firebaseAuth need to be passed as a parameter to the AuthenticationService constructor? Can't firebaseAuth just be initialized inside the AuthenticationService class?
@calvin32897
@calvin32897 4 жыл бұрын
Thank you Robert. Im an noob in flutter. This tutorial is really helpful. how would u make a register form base on this tutorial?
@RobertBrunhage
@RobertBrunhage 4 жыл бұрын
About the same as the sign in but instead call the signUp method :)
@calvin32897
@calvin32897 4 жыл бұрын
@@RobertBrunhage would you make a video one. day? Cause I'm confused that how to store the user data after registration. I made one by myself, but it pops a bunch of errors lol
@jonbikaku6133
@jonbikaku6133 3 жыл бұрын
woow such a Fireship vibe but good content!
@Krupupakku
@Krupupakku 3 жыл бұрын
When using StreamProvider (inside the MultiProvider), it requires an initialData. Do you know what can I use? At the moment I put a null and seems working, but I don't know if it's the best.
@MisterDibitybopty
@MisterDibitybopty 3 жыл бұрын
I'm in the same boat, I'm getting an error with null.
@tomicriedel5005
@tomicriedel5005 3 жыл бұрын
Hey! Nice video, but from 6:10 to 6:40 you are working with context.read When I use context.read, then I have an error at .read in my IDE That's the following one: The method 'read' isn't defined for the type 'BuildContext'. Do anyone know how to fix that?
@Krupupakku
@Krupupakku 3 жыл бұрын
Just import manually the provider package.
@tomicriedel5005
@tomicriedel5005 3 жыл бұрын
@@Krupupakku OMG I am so stupid xD I'm sitting in front of my laptop right now and I'm like why are you so stupid xD Anyway, thanks a lot, it runs.
@MatheusCabraldosSantos
@MatheusCabraldosSantos 3 жыл бұрын
@@Krupupakku Thank you, I had the same problem
@hrishabhkumar1954
@hrishabhkumar1954 3 жыл бұрын
Which version are you using
@malun22
@malun22 3 жыл бұрын
Any idea on how to get this to work with a custom user model? I mean mapping the firebaseuser like this is not the problem: Stream get authStateChanges => _firebaseAuth.authStateChanges().map(_mapFirebaseUser); But how to create a Stream not listening to the _firebaseAuth.authStateChanges but to the changes made in the custom user model?
@dennycad7859
@dennycad7859 3 жыл бұрын
Awesome.
@АнуарТабылдыулы
@АнуарТабылдыулы 3 жыл бұрын
I have user side app, and I wanna learn how to make admin side app. It would be very helpful if you make tutorial 😇
@jankenzimasangkay1504
@jankenzimasangkay1504 3 жыл бұрын
in the authentication wrapper what is the best method for bottomnavigationbar? i want to change the bottom navbar item LoginPage to UserProfile. im stuck in the authenticationwrapper.
@jawadahmed6190
@jawadahmed6190 4 жыл бұрын
The tutorial is really good but there is one small issue if we go from Home page to the another Page A using Navigator the top level Authentication Wrapper will be replaced and this will effect the sign-out functionality. The sign out functionality will not going to work on page A. Kindly clarify this also :)
@RobertBrunhage
@RobertBrunhage 4 жыл бұрын
True, but that can be added easily by doing something like: Navigator.of(context).pushNamedAndRemoveUntil('/', (Route route) => false); Missed that so thanks for pointing it out!
@quicksketch1617
@quicksketch1617 4 жыл бұрын
@@RobertBrunhage I will try to follow, where is that navigation in the code?
@mexirican316
@mexirican316 4 жыл бұрын
@Jawad Ahmed can you post a link where you used his Navigator solution?
@sylvesterasiedu
@sylvesterasiedu 4 жыл бұрын
@@RobertBrunhage Hello, I tried this but didn't work. Any other recommendation?
@thegorilla8395
@thegorilla8395 4 жыл бұрын
same issue
@alitaylan4267
@alitaylan4267 Жыл бұрын
Would it be better to add async-await to signout function, like "await context.read().signOut()" which is located at "7:33" of the video? @RobertBrunhage
@aventura1266
@aventura1266 3 жыл бұрын
Hey mate thanks for your great video, made it through with some workarounds. Is there an easy way I can apply *just* the email textfield, use the signInWithCredential (or similar methods) and *then* get the password textfield to appear afterwards? If email is verified, sign-in pages ensues, and similarly the sign-up page on unverified email. This will probably be pretty clunky if I have to make three separate pages for all of these actions.
@basspalace2920
@basspalace2920 3 жыл бұрын
How do I handle authentication if the user decides to add a parameter to the url on a web app? Right now I have auth and navigation set up, but if the user types the right words after the ‘#’ in the url it navigates them to the page they typed.
@richpo9814
@richpo9814 4 жыл бұрын
Do you know how to schedule meetings and send invitations to the people you want to have a meeting with in flutter? Similar to Zoom meetings.
@whoIsDeck
@whoIsDeck 3 жыл бұрын
Nice mate
@yogpanjarale
@yogpanjarale 3 жыл бұрын
Fireship style thumbnail
@joaovitoralvesalmeida8867
@joaovitoralvesalmeida8867 3 жыл бұрын
I'm getting this error now: Error: Cannot run with sound null safety, because the following dependencies don't support null safety: - package:provider is there something wrong with the package?
@sidmadkaikar1216
@sidmadkaikar1216 2 жыл бұрын
Great video, I have followed everything you showed but getting firebase core intialization error..please help🙏🏻
@pulscare6272
@pulscare6272 4 жыл бұрын
you r gem bro. love you.
@pointercodebot8936
@pointercodebot8936 3 жыл бұрын
Any idea why the Stream is alerting of the user on refresh for web after following this guide? End symptom is that for web on browser refresh, the User is still logged in but the UI responds like the user is not logged in. Great video, thanks
@poisonels8023
@poisonels8023 3 жыл бұрын
More videos please
@zulqadarabbas7567
@zulqadarabbas7567 3 жыл бұрын
Question, what if I want the user to be directed to a welcome screen before the Login screen? If I change the Login Screen to another module the user gets logged it but the home screen doesnt show
@afranmuzammil
@afranmuzammil 3 жыл бұрын
Tried to call Provider.of. This is likely a mistake and is therefore unsupported. If you want to expose a variable that can be anything, consider changing `dynamic` to `Object` instead. 'package:provider/src/provider.dart': Failed assertion: line 304 pos 7: 'T != dynamic' please can anyone help me out with this provider error?
@pierreschaeffer3023
@pierreschaeffer3023 3 жыл бұрын
same ! nobody have an issue ?
@danielestebanvalerogaleano3130
@danielestebanvalerogaleano3130 3 жыл бұрын
delete this => context.read()().signIn( email: emailController.text.trim(), password: passwordController.text.trim()); for this => final provider = Provider.of(context, listen: false); provider.signIn( email: emailController.text.trim(), password: passwordController.text.trim());
@imchoks5527
@imchoks5527 2 жыл бұрын
So very fast dude!. Can i see where did you save the code?
@doulaeiiminc7430
@doulaeiiminc7430 3 жыл бұрын
Idk if anyone can help me abeg. I want admin login to go to separate page
@ricard458
@ricard458 3 жыл бұрын
@Robert Brunhage If you tap back button of the smartphone the app closes. Is this expected?
@The0nlySplash
@The0nlySplash 3 жыл бұрын
Just surround your Home page with a WillPopScope then the user wont be able to navigate back
@noelcovarrubias7490
@noelcovarrubias7490 3 жыл бұрын
Thank you, you saved me! :)
@donk0g
@donk0g 3 жыл бұрын
Can you make a video how to do the validator in this form or just send me a example , and thankes for this video
@quicksketch1617
@quicksketch1617 4 жыл бұрын
Thank you. But I have a question, in the other tutorial you use GlobalKey and in that just have a controller. What it's the difference? I don't know nothing about that, if I use controller I didn't need GlobalKey? I was trying to use the validation, but the method of Authentication it's not static. I can't use something like this? RaisedButton( onPressed: signIn(), //that didn't work child: Text('Sign in'), ) Future signIn() async { final formState = _formKey.currentState; if (formState.validate()) { formState.save(); AuthenticationService.signIn(email: _email, password: _password);//error static method } }
@testerhuawei7946
@testerhuawei7946 3 жыл бұрын
Why to use a stream on the authenticationService class??
@wahyualfandi611
@wahyualfandi611 3 жыл бұрын
can you make updated version of this please?
@haidernakara5787
@haidernakara5787 3 жыл бұрын
how do we do it if we are using routes instead of return widget every time
@sivamaniv9579
@sivamaniv9579 3 жыл бұрын
Instead of Widget?. Return a widget with a function that will always call. i.e return Text("Signed In ${ (){ Navigator or page[target_index]}");
@sivamaniv9579
@sivamaniv9579 3 жыл бұрын
Returning a widget with a string and page_navigation_function is useless until it have certain animation delay.
@amansingh.h716
@amansingh.h716 3 жыл бұрын
can u please tell the difference btw read,watch and select method
@thegorilla8395
@thegorilla8395 4 жыл бұрын
i love it
@OGIMxGaMeR
@OGIMxGaMeR 3 жыл бұрын
How would you implement A Sign up button? The problem is that if you go to another page from this, and then in the Signup page call "Signup" using the AuthState, you won't be redirected to the HomePage because you have changed the page in between. How do you approach this?
@Moneybefehl
@Moneybefehl 3 жыл бұрын
i have the same problem, did you find a solution?
@rolo1632
@rolo1632 3 жыл бұрын
Can you make an updated one?
@ToddDenmar
@ToddDenmar 3 жыл бұрын
do you have update for multiprovider builder
@franciscopalacios3799
@franciscopalacios3799 3 жыл бұрын
Does anyone know why it marks me as error "read" in "context.read ..." '?
@visionl.3754
@visionl.3754 3 жыл бұрын
@Francisco Palacious, you must include the provider in the dart file. Hope this solves the issue.
@robertpietraru1939
@robertpietraru1939 3 жыл бұрын
What theme is that?
@nimas7840
@nimas7840 3 жыл бұрын
Your problem will be fixed with this: Convert: final firebaseUser = context.watch(); into this: final firebaseUser = context.watch();
4 - Setting up your payment system
1:34
Momoyoga
Рет қаралды 31
React Authentication Crash Course (with Firebase v9)
22:28
RavenJS
Рет қаралды 44 М.
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 25 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 117 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 1,8 МЛН
Best 30 Flutter Widgets, Packages & Tips
5:11
Flutter Mapp
Рет қаралды 122 М.
How I learned Flutter in 7 Days
8:27
Kenny Gunderman
Рет қаралды 496 М.
🔒📱 Email Login & Logout • Flutter Auth Tutorial ♡
16:00
Flutter Firebase Authentication [2024] The Cleanest Way
23:32
HeyFlutter․com
Рет қаралды 147 М.
Are You Typing Slower Than 80 WPM?
4:51
Robert Brunhage
Рет қаралды 3 М.
Top 5 Flutter Tips for Big Projects
5:55
Robert Brunhage
Рет қаралды 71 М.
React Firebase Authentication Tutorial | Firebase 9 Tutorial
28:39
Tips for production app with Flutter
7:35
CodeX
Рет қаралды 10 М.
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 25 МЛН