In flutter, using the sqflite package I can create a database, using this raw query... A
await db.execute('CREATE TABLE Article (id INTEGER PRIMARY KEY, title TEXT, description TEXT, url TEXT, urltoimage TEXT, publishedat TEXT)');`
I can then write data to the database like this... B
await txn.rawInsert('INSERT INTO Article(title, description, url, urltoimage, publishedat) VALUES("$title", "$description", "$url", "$urlToImage", "$publishedAt")');
Then I can retrieve this data as so... C
List<Map> title = await database.rawQuery('SELECT title FROM Article');
And finally use this data in flutter like this... D
Text('${title[index]}'),
When I use this method, I get this result upon execution of step D...
{title: Op-Ed: Does the Video Game Industry Really Need Blockchain?}
I'm aware that in properly returning this data, I'm missing a few steps. What I really want instead is something like this... E
Op-Ed: Does the Video Game Industry Really Need Blockchain?
How could I get a result like E instead?