© Mapbox, © OpenStreetMap

Speaker

Lucas Goldner

Lucas Goldner

Flutter engineer @ YOUTRUST

Stuttgart, Germany

Actions

24, Enthusiastic Flutter engineer at YOUTRUST. I have specialized in Flutter for 3+ 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!

Area of Expertise

  • Information & Communications Technology

Topics

  • flutter
  • App Development
  • Swift
  • SwiftUI
  • Web Development
  • TypeScript
  • Dart
  • Cross-platform

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

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

Comparing ways of accessing native functionality

How I came across this topic:
As part of developing one of my apps, I was interested in using the AirPods' sensors for data collection. For this purpose, I wrote a little package: https://pub.dev/packages/flutter_airpods
Which does precisely that. I used an event channel to get the information in real time and process it in my app. It was during the last Flutterforward that I heard for the first time about ffigen, which would have saved me a lot of development time. With ffigen, I can extract the class that provides all the functionality I need, create bindings, and call it directly from within Flutter. This talk will demonstrate the process and compare it to writing a bridge manually.

Takeaways:
- Auto-generate bindings to various languages like ObjC, Rust, and C++
- How ffigen can save a lot of time while developing
- Less maintenance since you can reduce the need for dependency

Fluttercon 2023 Sessionize Event

July 2023 Berlin, Germany

Lucas Goldner

Flutter engineer @ YOUTRUST

Stuttgart, Germany

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top