Flutter: Shared Preferences In 5 Minutes | Data Persistence

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 28

  • @baeewele
    @baeewele 4 роки тому +51

    Most chaotic 5 minutes of my life

  • @ahmed.waleed91
    @ahmed.waleed91 2 роки тому +1

    How can I store user's password in safe inside shared preferences

  • @mksmurff
    @mksmurff 5 років тому +6

    Simple and to the point. Great video thanks

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

    A very helpful tutorial!

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

    So simple yet so clear. Thanks a lot.

  • @hamzaimran1991
    @hamzaimran1991 5 років тому +4

    Keep up the good work!
    First to comment!

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

    Perfect! Thank you!

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

    how to insert flutter list data in php sql ?

  • @oOMikyStarOo
    @oOMikyStarOo 5 років тому +5

    Nice video! What VSCode extension are you using to show where the block ends?

    • @RobertBrunhage
      @RobertBrunhage  5 років тому +2

      Thanks! The extension I use for the block ends is called "Bracket Pair Colorizer 2
      "

  • @amarsad5147
    @amarsad5147 4 роки тому +1

    thanks for this video but I wonder if shared preference is reliable . can I rely on it to know if the user uses the app for the fist time or should I do it with sql

    • @RobertBrunhage
      @RobertBrunhage  4 роки тому +1

      You can totally use shared preferences for that, and I would even recommend it instead of sql for such a thing!

  • @edimoreira6405
    @edimoreira6405 5 років тому +3

    Thank you :)

  • @michaeltolsma7717
    @michaeltolsma7717 4 роки тому

    Is there a way to use this for multiple key-value pairs? For example, if I wanted to store a bunch of review cards that have two sides?

  • @albinsjolin649
    @albinsjolin649 4 роки тому

    Tack!

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

    is shared preference secure ? can anyone with admin privileges access the key value pair and change it.

  • @borisllonalonso99
    @borisllonalonso99 5 років тому

    Hi! Is there any way to store and object instead of a int or string? Thank you!

    • @chordfunc3072
      @chordfunc3072 5 років тому +1

      One solution would be to just make a SomeObject.fromMap factory method on your object and a toMap() instance method.
      Then you could use jsonEncode to make you object into a string you can store in SharedPreferences.
      And use jsonDecode to convert your JSON string into a map that you can pass to the fromMap function to re-create your object.
      (Can't remember if the functions where actually called jsonEncode and jsonDecode but you get the idea)

  • @irhas6555
    @irhas6555 4 роки тому

    What kind of reason to implement this?

    • @snotool
      @snotool 4 роки тому

      Persistent login for instance

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

    I'm not planning on making a function for every key in my shared preferences.... Useless tutorial for me

  • @ashishmagar5566
    @ashishmagar5566 5 років тому

    can you please make videos on paypal and braintree integration

  • @anothercath
    @anothercath 5 років тому +5

    Why do you keep ending your sentences with an inflection? It sounds like you're asking me instead of telling me what to do. That's so weird man. Stop it.

    • @tullahnazari1035
      @tullahnazari1035 4 роки тому +5

      Maybe he speaks more than one language and doesn't realize he is doing this....pretty normal stuff here

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

      Why do people assume English is the ordained everyone's first language.