Flutter State Restoration - EVERY Flutter Developer Must Know | Flutter Tutorial

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • #flutter #fluttertutorial #mobileapp
    In this Flutter Restoration Tutorial, we will be taking a look at implementing State Restoration in Flutter Applications. This is one of those features which adds to a great user Experience and hence every Flutter Developer should know about this. We will discuss Flutter Restoration ID, Restoration Scope, Restoration Buckets, RestorationMixin, and Restoration Manager and how they work together to provide an elegant solution for State Restoration in Flutter Apps.
    Restoration Manager: api.flutter.de...
    Navigator Restoration Flutter: api.flutter.de...
    🔥 Auto-Generate Flutter Custom Paint Code TRY THIS FREE TOOL👇:
    👉 Flutter Shape Maker: fluttershapema...
    🔥 Learn About the Most Important Widgets in Flutter 👇:
    👉 Widget Essentials Series: bit.ly/3GpfiYw
    👉🏻 Product Hunt: www.producthun...
    (Your UPVOTE Means a lot! 🙌)
    If you find this video useful consider Supporting @RetroPortal Studio :
    👉 Buy Me a Coffee: www.buymeacoff...
    👉 Patreon: / retroportalstudio
    Social Links @RetroPortal Studio :
    👉 Twitter: / theretroportal
    👉 Medium: / retroportalstudio
    👉 Instagram: / retroportalstudio
    👉 Patreon: / retroportalstudio
    👉 GitHub: github.com/ret...
    If you like the tutorial, please hit the LIKE and Subscribe button and also consider supporting me on Patreon or Buy Me a Coffee for More Flutter Tutorial on RetroPortal Studio.
    Thank you for Watching! Happy Coding :)

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

  • @RetroPortalStudio
    @RetroPortalStudio  2 года назад +1

    If you find this video useful, consider Following me on:
    👉 Twitter: twitter.com/theretroportal
    👉 Medium: retroportalstudio.medium.com
    👉 GitHub: github.com/retroportalstudio
    👉 Instagram: instagram.com/retroportalstudio
    👉 Patreon: www.buymeacoffee.com/theretroportal

  • @lunaRdeltaY
    @lunaRdeltaY 2 года назад +2

    what a great tutorial! this deserved more views and likes!

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

    the best description of use of restoration Manager that I have found - really good

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

      There is a question on how this differs from use of shared preferences (and presumably writing to SharedPrefs during the app). What I am able to find so far is that this returns directly to the route, but it may be that shared preferences (and a file for more data) would be used if more App data to restore. I would welcome other comments on this

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

    It's a good practice to make all the variables as Restoration

  • @khanisrarahmedalihusain
    @khanisrarahmedalihusain 2 года назад +2

    It was awesome video. Got to learn something new. Thanks.

  • @nipunshah1373
    @nipunshah1373 2 года назад +1

    Just Amazing Introduction !

  • @garagumgaragum6161
    @garagumgaragum6161 Год назад +1

    Thank you very much.

  • @md.ruhulamin7963
    @md.ruhulamin7963 2 года назад +1

    This is very helpful. Thank you sir.

  • @youdube1203
    @youdube1203 2 года назад +1

    Thank you> great content as usual

  • @kahustone7347
    @kahustone7347 2 года назад +3

    Hey, this is absolutely great, thank you for the video. Forgive me if this is a naive question, still just learning Flutter, but would you recommend applying this across all screens in an app?

    • @RetroPortalStudio
      @RetroPortalStudio  2 года назад +3

      No, use it very carefully cz all that data has to be loaded back. Use it in scenerios where starting from scratch would be a tedious job for user

    • @kahustone7347
      @kahustone7347 2 года назад

      @@RetroPortalStudio Thank you

  • @officialismailshah
    @officialismailshah 2 года назад +1

    🙌🙌🙌🙌 awesome video...

  • @althafaralijaffarali1803
    @althafaralijaffarali1803 2 года назад +3

    Bro create more videos on flutter desktop.

  • @hashankannangara8723
    @hashankannangara8723 2 года назад +1

    Thanks

  • @SaitamaMixed
    @SaitamaMixed 4 месяца назад +1

    is this restoration works even after the app got killed ?

  • @ozzfelipe
    @ozzfelipe 2 года назад +2

    Valeu!

  • @priyankshir3074
    @priyankshir3074 2 года назад +1

    how can we implement restoration on list or listview?

  • @faizulla5838
    @faizulla5838 2 года назад +1

    nice!

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

    how to callback using restorablepushnamed?

  • @thomasmabika7291
    @thomasmabika7291 2 года назад +1

    does the state get restored when you reboot the device?
    Great tutorial btw..

    • @RetroPortalStudio
      @RetroPortalStudio  2 года назад +2

      Thank you ✌🏻😁 and this targets the restoration for apps in background only.

  • @ahmadmuizzuddin296
    @ahmadmuizzuddin296 2 года назад +1

    How is this different with shared preference sir ?

    • @RetroPortalStudio
      @RetroPortalStudio  2 года назад +3

      You should almost never use shared_preferences to store state.

  • @lunaRdeltaY
    @lunaRdeltaY 2 года назад

    Good day sir, i m new to flutter, i couldnt find restorationScopeId when i use GetMaterialApp, may i ask how can i do the same thing if i m using getX?

  • @akhtarshah2816
    @akhtarshah2816 2 года назад

    But i came to know that state Restoration is necessary in native programming, in case of Flutter it handles state Restoration.
    if i am right plz marke as right
    i am waiting ......for your comments

  • @sridharmarella8581
    @sridharmarella8581 2 года назад

    Can we use this with autoroute?

  • @Andrew-px9fj
    @Andrew-px9fj 2 года назад

    does this work in both android and ios?

  • @glowiever
    @glowiever 2 года назад

    when do I need this though? if I simply switch app my app doesn't lose its state. I use provider package but feel somehow it's unrelated.

    • @v.valente
      @v.valente 2 месяца назад +1

      i see its 2 years later but anyways... well, im having an issue where some customers are using old devices with low memory and between filling "forms" in my app, they need to copy text from 'notes' or another app and when switching back to my app, the application loses state and starts from scratch... that's "when we need this" :p

  • @Liv_Life
    @Liv_Life 2 года назад +1

    I m the first