How To Save and Load Data In Flutter Using SharedPreferences

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 18

  • @LuizR3is
    @LuizR3is 9 месяцев назад +2

    I had a hard time understanding how to implement Shared Preference, but your video made everything clear. Thank you very much!

    • @Spellthorn
      @Spellthorn  9 месяцев назад

      Glad it was helpful 🙂

  • @karimalkhabbaz
    @karimalkhabbaz Год назад +2

    The best explanation I encountered about SharedPreferences ... Thanks.

  • @laabiditarek1122
    @laabiditarek1122 10 месяцев назад +1

    u made this so easy thanks a lot

  • @Polpy-qg4mk
    @Polpy-qg4mk Год назад +1

    Extraordinarily explained really good job on that video!

  • @technicalguy.
    @technicalguy. Год назад

    Such a beautiful explaination, thank you so much for your efforts, one thing i can suggest you is please try to write code from scratch so that it will help us a lot to understand better, btw it was really good tutorial ❤

    • @Spellthorn
      @Spellthorn  Год назад

      Thank you. Yea I thought about writing the whole demo out as I always hate when tutorials just jump with all this code already there. But in this example, this is something you can add to your already made project so I thought it was okay to stsrt from there and add what you need

  • @magicrob9546
    @magicrob9546 10 месяцев назад +1

    Hi, how can I do this, when I have a custom class object (I want to save a list filled with my own objects)?
    I am always getting this error:
    Unhandled Exception: Converting object to an encodable object failed: Instance of 'TerminItem'
    toString Method doesn't help sadly.
    Please help!

    • @Spellthorn
      @Spellthorn  9 месяцев назад

      Umm, depends on what data you're trying to save. When I have issues I don't understand I use ChatGPT for help

    • @mobtereststudio
      @mobtereststudio 9 месяцев назад

      Shared Preferences supports specific data types: int, bool, double, String and List. And for List, it's of type String - List.
      If you need a local data storage that stores objects, you can use Isar or ObjectBox. 👍

  • @squidwardmoney6492
    @squidwardmoney6492 Год назад

    very nice very nice

  • @gopanm2777
    @gopanm2777 Год назад

    Where i can find the src code sir?

  • @gopanm2777
    @gopanm2777 Год назад

    Sir the application seems good. But it's not working. When i click the number button it's not showing any response it's still standing on 0.? What to do. Anybody pls? 😶