Lucas Goldner

Flutter engineer @ YOUTRUST

Talk Title

Saving data before the app getting killed! Easy state restoration with Flutter

Room

Widget Way

Date

03.07.2024

Time

15:45 > 20 min

Share

on Twitter

Imagine this scenario as a user: You are writing a long text in an app, keep switching between various apps, and return to the app, but notice the OS killed it! Now, all your written text is gone. What a terrible UX! How can we, as developers, help the user avoid running into this worst-case scenario? Simply keep and restore the app’s state! We always discuss state management but forget about restoration. For my newest app, "Japanana," I needed to include this feature. So, I will explain the implementation with an actual example. In this talk, I want to:

- Show how to enable state restoration
- Explain the differences between iOS and Android
- Implement the restoration of our app state and discuss various strategies including navigation
- Learn about multiple possibly unheard types such as RestorableInt and RestorableString
- Adjust our tests with this new behaviour

Speaker Bio

At 23, I am an enthusiastic Mobile Developer at YOUTRUST. I have specialized in Flutter for 2+ years now and am doing talks on it at various places around the world. Speaking more or less 5 languages, also interested in chatting with various people about Flutter!

Menu