首页 > 解决方案 > How do I save data after closing the Flutter app?

问题描述

I try to create an App, where you can simply add a new TODO. My problem is that after a added a new TODO, and than close my App, my TODO-List is empty. What is the best way to save data in the App? Are there any simple solutions for that?

标签: flutterdartstate-management

解决方案


As a basic implementation, I would say you should use shared preference it uses key values to store data, and it's pretty easy to use the data will remain until you clear your cache to uninstall it.

https://pub.dev/packages/shared_preferences


推荐阅读