How to save my current state by using json or something else in Flutter
问题 I want to know how to save my current state by modifying the existing JSON file. but I can't find a way to saving..... So I want to ask you about that. The size of the JSON file is not so big. So I considered total - loading and total - saving when the loading and saving state is called. but I think it is not efficient and unstable... So can I get some help? 回答1: please use this package https://pub.dev/packages/shared_preferences Wraps NSUserDefaults (on iOS) and SharedPreferences (on Android