When I learned that no file could be modified inside the assets folder I did the following:
- Use a variable to store data. How to call it again?
- Using SQLite shows the same problem and error messages.
- Store the data and call it from a text file, but it is also useless.
Error messages:
- Sometimes the application hangs during the build phase at this line in the terminal:
Connecting to VM Service at ws://127.0.0.1
- Using
getApplicationDocumentsDirectory
either with a JSON file or SQLite:
Error: MissingPluginException(No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider)
- Trying to store or read from text file:
Unsupported operation: _Namespace
My attempts:
{
"user" :[
{
"name":"sife",
"age":44
},
{
"name":"hasan",
"age":22
}
]
}
I want to add this:
"name":"faris",
"age":30
I want an example that can be applied with the lowest specifications and the least libraries and complexity.
2
Answers
I used Mr. Naqib's intervention and asked the artificial intelligence site to merge what the professor wrote with what I want specifically, so the result was as follows.
Here is a sample example, if you want me to explain this, feel free to comment and ask for explanation