Question: I am currently learning flutter and dart. I am not a very experienced developer (mainly some C++ knowledge), but I really like Flutter and I started to develop some Apps for testing and learning. The only real problem I have is that I don't understand how to save stuff to the device. I know there are some tutorials out there but they don't really cover what I want to know.

The Counter Example is nice to show a beginner how to save one int. But in my App, I want to save a list of objects with int, string, and list values.

So my questions are

* How do I save an object?
* Can I simply save a list of objects?
* If I have two different Objects do I save them on one or two separate files? Same with theme or preference values the user chooses?
* In my App, the user should be able to extend an existing list of objects. How do I save those already existing Objects to the device?
	+ How do I read the files and how will the data be structured? Do I get the objects i saved or just their values?

You see: I am not very experienced yet, but I really want to learn more about Flutter! So if you have any good links or advice regarding that subject or generally Flutter please share them!

Thank you for your help!

Answer: 
Saving objects means saving state of app.
It can be done by data saving techniques like database or sharedpreference

If you need to save exact object at that time it could be hectic to use sharedPreference or sqflite.

But it is lot easier if you use HIVE Database for flutter.

References you can follow: 

* <https://medium.com/@viveky259259/hive-for-flutter-1-when-why-database-cea0013c9fc1>
* <https://medium.com/@viveky259259/hive-for-flutter-3-implementation-e825a0a833d3>
* <https://resocoder.com/2019/09/30/hive-flutter-tutorial-lightweight-fast-database/>
* <https://docs.hivedb.dev/>
I would recommend using [sqlfite](https://pub.dartlang.org/packages/sqflite), a plugin to access sqlite.