Flutter Sharedpreferences Alternative | GetX Storage | How to keep user logged In?

Поділитися
Вставка
  • Опубліковано 19 жов 2024

КОМЕНТАРІ • 25

  • @RossittoS
    @RossittoS 3 роки тому +1

    Perfect! You solved my problem! I was having trouble to do the same thing using Shared Preferences, but this package worked great! Thank you.

  • @rawadmezher3843
    @rawadmezher3843 3 роки тому +1

    Thanks , very easy to understand

  • @elgrego3849
    @elgrego3849 3 роки тому +1

    Pls, you can with google account?

  • @akashmore6862
    @akashmore6862 3 роки тому +1

    Best Video.

  • @theifeanyi
    @theifeanyi 2 роки тому +1

    i am trying to assign data from GetStorage to a variable. the data is in the storage but I haven't been able to get it to show up in the variable I am assigning it to. Any reason for this?

    • @ProtoCodersPoint
      @ProtoCodersPoint  2 роки тому

      Are you sure, Data is available in GetStorage, And for your kind infomation GetStorage is not permanent database, In case if your force stop or clear data, Data will be lost

    • @theifeanyi
      @theifeanyi 2 роки тому

      @@ProtoCodersPoint yeah am sure there is data. Cos I can print what is in the box using .read method. I just can’t save it to variable so I can access other content within it.
      It’s just for saving user info while they are logged in. Intend for it to be erased once the user logs out

    • @theifeanyi
      @theifeanyi 2 роки тому

      So since it was an array of data with maps within maps. I had to encodeJson it on write and decodeJson on read for it to work. For everyone experiencing same issue.

  • @romzanali9930
    @romzanali9930 Рік тому

    it worked

  • @JK92007
    @JK92007 3 роки тому

    Bro ...you use statefull homePage widget in main.dart ...cant we use stateless widget insted...? because GetX is all about using stateless widget .....so that we can reduce memory load in our app and that's why app performs better...so I confused because initState() method cant be used without statefull widget...so please suggest me...

    • @webcommyanmar3180
      @webcommyanmar3180 3 роки тому

      If u use getx , u don't need stateful widget anymore for state management

  • @MetaTesla
    @MetaTesla 3 роки тому +1

    Nice Video Bro! Btw I wonder if GetX Storage is safe enough for using Login Token. Let me know your thoughts!

    • @ProtoCodersPoint
      @ProtoCodersPoint  3 роки тому

      Yes it’s safe to use Getx storage for login data save
      But don’t use it for huge data storage

    • @MetaTesla
      @MetaTesla 3 роки тому +1

      @@ProtoCodersPoint gotcha! Thank you:)

  • @JK92007
    @JK92007 3 роки тому +2

    bro how we can impliment this in firebase authentication login page...?

    • @ProtoCodersPoint
      @ProtoCodersPoint  3 роки тому +1

      Hi, This is just to demonstrate how to use Get X Storage as an alternative of shared preferences to store user data
      you can use this library to keep user data in your app memory itself and user data to display them on screen

    • @ProtoCodersPoint
      @ProtoCodersPoint  3 роки тому

      check our video on firebase authentication

    • @JK92007
      @JK92007 3 роки тому +1

      @@ProtoCodersPoint👍👍👍😊😍🏵🌺..👍👍 bro....Now using GetX... we want tutorial on theam changing(dark or light) and making our app internationalised (english, hindi, French etc.) Using GetX...Plz use our previous login UI ... Don't worry about topic...We will give you topic bro...So plz make tutorial covering these two topic...😍😍👍👍🌸🏵🌺