问题
How to store a list of object data in SQLite on Flutter? Json data coming with API.
{
"images": [
{
"id": 10,
"name": "img1"
},
{
"id": 11,
"name": "img2"
}
]
}
回答1:
- use flutter sqlite package
- make helper class for db operations and model class example here
- parse json and insert or update data
来源:https://stackoverflow.com/questions/55232650/how-to-store-list-of-object-data-in-sqlite-on-flutter