Keeping it local: Managing a Flutter app's data

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Data locality can make or break your app's performance. Sometimes storing data in the cloud isn't feasible. Or sometimes data needs to be kept locally for caching or until the user's on a reliable internet connection. Here, we'll explore strategies and methods for storing data locally. We start from simple key/value stores and work our way up into more complex persistence mechanisms.
    Speaker: Andrew Fitz Gibbon
    Source repository → goo.gle/2JpSkIb
    Learn everything about Flutter at → goo.gle/2WAhEN1
    Subscribe to Flutter! → goo.gle/FlutterYT
  • Věda a technologie

Komentáře • 74

  • @chichebem
    @chichebem Před 3 lety +34

    Thanks for the video. It explains some of the basic concepts on how to manage data locally taking advantage of disk-read speed and I definitely picked up on the concepts. Please a future video on how to sync local data to the cloud once internet connection is established will be greatly appreciated.

  • @thkp-eng
    @thkp-eng Před 3 lety +8

    Super important topic! It's something that we've spent a lot of time striking the right balance (what to cache, what is absolutely critical to have fresh from the server.) Thanks for making this video!

  • @kirill4531
    @kirill4531 Před 3 lety

    A great video for beginners on how and why store data locally!
    Thank you

  • @timofrommann3292
    @timofrommann3292 Před 3 lety +1

    It's not only informative. I love listening to Andrew. Such a joy and never booring

  • @fegyi001
    @fegyi001 Před 3 lety +6

    Very informative, easy to follow, thanks a lot!

  • @MultiChicao
    @MultiChicao Před 3 lety

    Excellent explanations!! Thank you for sharing your knowledge. 👏🏽👏🏽👏🏽

  • @333tuberob
    @333tuberob Před 3 lety

    This video is perfect timing for me. Performance using local storage is crucial. You explained the concepts Really we'll. I would imagine this is important for flutter on the web, with different storage options to engineer than mobile. All good 👌 cheers.

  • @markusmcgee
    @markusmcgee Před 3 lety

    Good video. One of the better Flutter videos I have seen.

  • @rebarius
    @rebarius Před 2 lety

    Omg, why did I never view this awesome video ✨ thank you so much Andrew Fitz 💪🏼 I understood every single word 👌🏼

  • @RishikeshShede
    @RishikeshShede Před 3 lety

    Thanks, man! This was really helpful and much needed 💯💖

  • @hasansalim1868
    @hasansalim1868 Před 3 lety

    Thanks Andrew. Very nice presentation

  • @AJ-nn9xn
    @AJ-nn9xn Před 3 lety +2

    Brilliantly presented thanks. Can you do a follow up showing best practice for refreshing locally stored / cached data once internet is available again?

  • @symbally
    @symbally Před 3 lety

    good content and happily able to digest, thanks for making this

  • @_Amilio_
    @_Amilio_ Před 3 lety

    Awesome lecture thank you. Moar of these pls!

  • @hoggish
    @hoggish Před 3 lety

    Really good explanation Thank you

  • @netdevilzzz
    @netdevilzzz Před 2 lety

    Great video. Thanks!

  • @stingtao
    @stingtao Před 2 lety

    great explanation!

  • @srourganoush5941
    @srourganoush5941 Před 2 lety

    Thank you, God bless you

  • @ExtraServingsBTS
    @ExtraServingsBTS Před 3 lety +1

    sweet! App feels much snappier.

  • @tuobraun
    @tuobraun Před 3 lety +2

    Brilliant lecture. Thank you so much

  • @NOPerative
    @NOPerative Před 2 lety

    AWESOME vid!

  • @jonathaalves3743
    @jonathaalves3743 Před 3 lety +4

    What if I wanted to save files locally in a structured database until I eventually got connected to the internet, how could I do that sync thing?

  • @warperone
    @warperone Před 3 lety

    do you have series of similar videos - great way to learn flutter

  • @sumailsasumi1294
    @sumailsasumi1294 Před 3 lety +7

    Midnight course 😴, need some coffee here

    • @keshavchetty5174
      @keshavchetty5174 Před 3 lety

      Same here....midnight studying. Ain't nothing better.

  • @ChanakaJ
    @ChanakaJ Před 2 lety

    Brilliant !!!

  • @arifyogawiranto1687
    @arifyogawiranto1687 Před 3 lety

    Great explanation. What extension in vscode to flutter?

  • @Pedro5antos_
    @Pedro5antos_ Před 2 lety

    Thanks a lot

  • @samuelmayowa3857
    @samuelmayowa3857 Před 3 lety

    Nice video

  • @Wilhelmification
    @Wilhelmification Před 3 lety +5

    I think it will be useful to have video about console commands

    • @kirill4531
      @kirill4531 Před 3 lety +2

      Yeah, especially how you can enter the app's data folder in AndroidStudio

  • @JuanGuillermoFuentes
    @JuanGuillermoFuentes Před rokem +1

    Hi guys, I need some help: We are working in a streaming app for android tv (in flutter) and after a few days the screen goes to black, exist some option to refresh automaticly (once a day for example) the caché to fix that problem?

  • @DrMilde
    @DrMilde Před 3 lety

    Hi Andrew, nice explanation, thx, please note,that CachedNetworkImage is working fine, but after some time (say a couple of weeks) you get cache errors, images are somehow not readable anymore ... this will eventually crash the app 😭 only solution I found, is clearing the Cache from time to time.
    Best wishes jt

  • @anmolkapoor1068
    @anmolkapoor1068 Před 3 lety +4

    It would have been useful if you would have explained a bit more on how to delete those cached images automatically after we hit a certain memory level.

    • @kirill4531
      @kirill4531 Před 3 lety

      There is a cache manager property, I think that's what you need

    • @anmolkapoor1068
      @anmolkapoor1068 Před 3 lety

      @@kirill4531 yeah I know about that, but I wanted to know how to use that efficiently or perfectly according to different needs.

  • @housemajaliwa
    @housemajaliwa Před 2 lety +1

    Lovely

  • @nicolasdupere
    @nicolasdupere Před 3 lety +1

    Flutter forever

  • @youssefmuhamad3213
    @youssefmuhamad3213 Před 3 lety +1

    I'm still waiting a simple and out of the box solution for state management in Flutter, like React Hooks and Context API. There are a bunch of cool built-in widgets already, invest more time creating some cool abstraction for us.

  • @nwparker7
    @nwparker7 Před 3 lety +6

    How did you get the waiting times to display in the terminal? Looks useful

    • @kirill4531
      @kirill4531 Před 3 lety

      .addListener to this question :)

  • @fabiosabbion4930
    @fabiosabbion4930 Před 3 lety +1

    Loved the video, but light theme in vs code should be illegal

  • @aimnblbol
    @aimnblbol Před 3 lety

    Anybody knows how he connected to the ios device through the command line? I wish he said so in the video. It would have helped. Nice video. Thanks

  • @nargessadeghi3915
    @nargessadeghi3915 Před 3 lety

    can you please make a course about comparing database packages? like sqflite, moor, hive, objectDB, sembast?
    or can anyone introduce any?

  • @kevinliu6002
    @kevinliu6002 Před 3 lety +1

    Could you list the common uses of shared preferences? I understand it is not for critical data, but that's all I know right now.

    • @kirill4531
      @kirill4531 Před 3 lety

      Go to officiall Flutter docs site

  • @jagmit
    @jagmit Před 3 lety +1

    Which extension do you use for the TODO comment at 25:20?

  • @PrakashIndorkar
    @PrakashIndorkar Před 3 lety

    Hi .. I'm waiting for next video .. how you'll manage api provider data and local data to keep them in sync.

  • @UmairAhmadh
    @UmairAhmadh Před 3 lety +3

    Don't look at this and complain, this is for my reference:
    -------------------------------------------
    9:34 Shared Preference
    23:43 Caching images to disk
    31:52 SQFLite

  • @kirill4531
    @kirill4531 Před 3 lety

    I see you can access app's files in the terminal, why I can't access this folder in AndroidStudio in File Explorer tab?

  • @gripzy7571
    @gripzy7571 Před 3 lety +3

    What is the best way to save API keys

    • @aminabekir903
      @aminabekir903 Před 3 lety

      Save it in .env file

    • @kirill4531
      @kirill4531 Před 3 lety

      Those that are present in Android Manifest file you can't do anything about it, they will be visible any way.
      Those that you can use in the code try to encode them

  • @vrajendramandloi5917
    @vrajendramandloi5917 Před 2 lety

    hi ,, i am using flutter SDK 1.20 a bit old not yet upgraded to 2.10+ can you suggest me how to create external Storage Folders in Android?? This is Quite important to me as Android 11 is not allowing me to create external Storage. Kindly reply me or ping me directly...

  • @crnofficial
    @crnofficial Před 3 lety +1

    🕺🏾

  • @scottgodfrey7855
    @scottgodfrey7855 Před 3 lety +2

    "Without data, the app would be uninformed." Was that an intentional pun?

  • @user-gl9pf3io6r
    @user-gl9pf3io6r Před 3 lety

    are there app with flutter?
    I do not see anywhere
    flutter -> fake ?

  • @shaysframe1472
    @shaysframe1472 Před 2 měsíci

    Why you never hide the terminal....

  • @jeroboam4486
    @jeroboam4486 Před 3 lety +12

    I don't want to be negative but frankly I don't see the point of this 45 minutes video to say that "yeah you can store data locally" ... duh.
    Now I would have loved a video about how to sync your local unconnected data to the cloud once you're connected.

    • @BillyMahmood
      @BillyMahmood Před 3 lety +1

      True

    • @mrunfunny
      @mrunfunny Před 3 lety +1

      true, but for beginners, this video does a great job at explaining why we need to store data locally, what are benefits and different ways to store it.

  • @yazidkrayem7408
    @yazidkrayem7408 Před 3 lety +2

    Thank you for this video, but images still loading slow even if we save it and call locally

    • @yazidkrayem7408
      @yazidkrayem7408 Před 3 lety

      @teriitube I was using Flutter-web, and I had images inside the assets folder. The problem was with the image size(over 1Mb). I published it, and the images were loading slower than I expect. Whatever I should use flashy for those images. (I will use it for the next project :D)

  • @Mendez_84
    @Mendez_84 Před 3 lety

    But you said *state* ment

  • @scottishking9731
    @scottishking9731 Před 3 lety +1

    I’ve encountered problem after problem downloading flutter five days and four times deleting everything and redownloading and its still not working ready to delete it all permanently. Absolute joke this. They want people to get into tech, but make the process of it that problematic it puts us off. And on top of that flutter doesn’t even have any kind of customer service and i joined reddit just to try and get help and still not further forward. Cant even speak with anyone for help with android studio either tech companies with no tech support laughable.

    • @coppice8412
      @coppice8412 Před 3 lety +1

      Hm, I felt like the Flutter setup was one of the easiest that I had to do

  • @shedrackejeh6542
    @shedrackejeh6542 Před 3 lety +4

    Why is statement management a nightmare in flutter

    • @khulegu
      @khulegu Před 3 lety +4

      when is it a nightmare? there are so many easy solutions like provider, stream.

    • @sim632
      @sim632 Před 3 lety

      It's not, it's pretty good actually