Part-9 Check If Use is already Login/Logout || Flutter Firebase Tutorials in Hindi/Urdu

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.ย. 2022
  • In this video i will teach you how we can check if user is already login or not. if user is already login then how we will skip the login and move to next screen and if user is not login then how we can move user to login screen. I will also teach you if user is login then how we can logout with firebase.
    Playlist: lnkd.in/dfwijFgd
    instagram: / thetechbrotherss
    join fb group: lnkd.in/dAWaFWtp
    Playlist: lnkd.in/dVv_jy4W
    Road map: lnkd.in/dHF8yc68
    _____________/Connect On Social Media\____________
    ► linkedin:➜ / axiftaj
    ► Instagram:➜ / axif_taj
    ► Facebook:➜ / aaxiftaj
    ► Twitter:➜ / axiftaj
    ► GitHub:➜ github.com/axiftaj
    ► Hire me on Fiver:➜ www.fiverr.com/asif_taj
    =========================================
    flutter, connect firebase, firebase tutorials, firebase authentication
    For business queries : axiftaj@gmail.com
    Thank you for watching my channel do give feedback about this video.
    #flutter #firebase #firebasehindi #firebasetutorial #flutter #flutterdev #login_form #fluttering
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 41

  • @mixfruiet
    @mixfruiet ปีที่แล้ว

    thank you sir , the way you explains every things with 100% actual solutions, no one do, thank you again sir

  • @syedharis2771
    @syedharis2771 ปีที่แล้ว +1

    MashAllah Sir❤

  • @foodxcooking4448
    @foodxcooking4448 5 หลายเดือนก่อน

    All is Well Sir!

  • @ssagaming4545
    @ssagaming4545 ปีที่แล้ว

    sir you are very good.

  • @exsample5000
    @exsample5000 ปีที่แล้ว +1

    I have question I have a Welcome screen which I add a button that proceed to the loginpage, after I sign in just like yours it will show our admin page, after I logeout from the adminpage it will proceed to the loginpage, heres the problem Im on the loginpage, and I want to exit the loginpage and proceed to my welcome screen, after i clicked the back button of my smartphone it will go back where i left which is on the adminpage. But I need to go on back to the welcome screen not on the adminpage .. please help.

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      You have to follow same process

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      You have to follow same process

    • @exsample5000
      @exsample5000 ปีที่แล้ว

      I already followed, your tutorial but it seems you have only 1 page which is the login page. Wherein after you log out it only goes to the login page. Unlike On my project, I have a welcome screen. after l log out from the admin page. The same on the tutorial video, which will route to the login page. But I have a welcome screen and I want to go on my welcome screen. When I pressed the Arrow back on the app bar or when I pressed the back button of my smartphone, it goes back to the admin page. Do you have any idea how I can specify the route when pressed my smartphone's back button it will go to the welcome screen, not the admin page.?

  • @exsample5000
    @exsample5000 ปีที่แล้ว +2

    How can we display the current users name on their profile while they are logged in?

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      store data in database and then fetch the data

  • @hassanmughal331
    @hassanmughal331 ปีที่แล้ว +1

    sr aap 2 user add krky check kry k aapke end pe jo user login krta ha to wohi user login hua hota jab app close krky again open kro to Plzzzz iska lazmi bataye ga.

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      Logout krwao pehle and process to carefully follow kro

  • @shahzaneerahmed1507
    @shahzaneerahmed1507 ปีที่แล้ว +1

    can we say that it is shared preferences?

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      yes you can but you have to check for instance

  • @sportsfever4116
    @sportsfever4116 ปีที่แล้ว

    Created a UI with firebase login signup option.
    Google login and email login works fine but when user sign up, screen remains still util back button is pressed and screen is directed to homepage.
    i tried putting pop in signup button on pressed but after that our signout button(when clicked) dont redirect user to the login screen. Anybody help me guys.

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      It means you are clearly making mistake please watch video carefully again to avoid this issues

  • @hassanmughal331
    @hassanmughal331 ปีที่แล้ว +1

    sr maine aap waly method se kiya or 2 user add kiye jab ma first user ko login karata ho to wo login ho jata ha jab ma app close kr k again open krta ho to 2nd user login hua hota ha jabky maine 1st user ko login kiya tha to ussi first user ko hi login rehna chaiye tha jabky first ki bajaye 2nd user login hua hota iski smj ni a rhy mujy.. kindly iska koi solution bataye

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      Logout krwaoo na pehle

    • @hassanmughal331
      @hassanmughal331 ปีที่แล้ว

      @@thetechbrotherss
      G logout krwa rha tha.
      Thank you issue solve hogya ha ma bas jaha user profile ka data fetch kr rha tha waha issue tha
      Thankyou sir your videos helps us a lot.
      And we're always waiting for your next video
      Stay blessed and happy 😊

  • @rishabnegi2334
    @rishabnegi2334 ปีที่แล้ว

    when we press back button after logging In it is going to back to login page.
    Is there a way where we can only go back to login page after log out only.
    Please help.

  • @user-ts7cj7rj7j
    @user-ts7cj7rj7j ปีที่แล้ว

    Thank you for your great video! can I ask you?
    I want to make an app where people can learn languages. I want to make two cases.
    1. when you sign up, you sign up, enter additional information, do a level test, and go to the main page
    2. if you have registered as a member, you go to the dashboard right away whenever you turn on the app.
    if I want to make the second one.
    if(user!=null){
    Timer(const Duration(seconds: 3),
    ()=> Navigator.push(context. MaterialPageRoute(Builder(context)=> LeveltestScreen))
    );
    }else{
    Timer(const Duration(seconds: 3),
    ()=> Navigator.push(context. MaterialPageRoute(Builder(context)=> LoginScreen))
    }else(if user ends with level test(or if firestore.collection is chekced),
    ()=> Navigator.push(context. MaterialPageRoute(Builder(context)=> DashBoardScreen))
    }
    it would look like that. Do you know how to make it?
    thank you so much!!

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Please watch user based role app with shared preferences in my bootcamp playlist and you will get the idea how it’s done.

  • @tanveersyed9999
    @tanveersyed9999 11 หลายเดือนก่อน

    I am about to finish the bootcamp

    • @thetechbrotherss
      @thetechbrotherss  11 หลายเดือนก่อน

      Find your self a job

    • @tanveersyed9999
      @tanveersyed9999 11 หลายเดือนก่อน

      @@thetechbrotherss I am trying Sir but in Peshawar I think it's a little bit challenging for me.

  • @Inductuscompany
    @Inductuscompany 11 หลายเดือนก่อน

    Hello Sir User ka Key Kse Pta kregay ki Konsa User Login Hain ...Q ki Humne Try kiya New User Create kr Kr Toh Purane User Ka Data Show Ho rha hai Aesaa Toh Hona Nhi Chahey

    • @thetechbrotherss
      @thetechbrotherss  11 หลายเดือนก่อน

      check how i login current user using firebase in firebase social media app

  • @bhupendratiwari1564
    @bhupendratiwari1564 ปีที่แล้ว +1

    But mobile mae appbnd krne sae hmesha login krwa rhs

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Follow this playlist i have taught how you can handle if user is already login

  • @abdullahranjha6700
    @abdullahranjha6700 ปีที่แล้ว +1

    No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp();
    bro yeh error aa rha ha or screen b red ho jati ha
    how I can solve this error ?

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Please watch video from the start of the playlist.

    • @abdullahranjha6700
      @abdullahranjha6700 ปีที่แล้ว

      @@thetechbrotherss bro I'm watching from start. Ma apki Sari videos taqreeban dkhta ho. flutter bootcamp b mny apki videos sa hi learn kia ha.
      But yha mra Code bilkul thek ha user login hi rhta ha but jb app restart krta ho tb yeh error ata ha

    • @abdullahranjha6700
      @abdullahranjha6700 ปีที่แล้ว

      thanks Solved error

    • @akshaysrivastava4304
      @akshaysrivastava4304 ปีที่แล้ว

      @@abdullahranjha6700 how did you solve ? please share

    • @Funny_Vibes995
      @Funny_Vibes995 ปีที่แล้ว

      @@akshaysrivastava4304 bro use this piece of code then you resolve the error
      void main() async {
      WidgetsFlutterBinding.ensureInitialized();
      await Firebase.initializeApp();
      runApp(const MyApp());
      }