16.2%
38.4%
2.2%
37.8%
-11.6%
37.5%
97.4%
9.3%
-11.4%
100%
14.1%
100%
100%
33%
14.2%
-48.2%
-46.7%
-11.6%
-82.9%
-84.4%
INSERT INTO POGGERS (id STRING PRIMARY KEY, tasktype TEXT, tasktitle TEXT, taskdescription TEXT, taskcompleted TEXT, datetime TEXT, datetimedue TEXT, taskpriority TEXT) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
INSERT INTO POGGERS (id, tasktype, tasktitle, taskdescription, …)
VALUES
If I have published Android and iOS apps, and I want to create a new screen using Flutter that both the Android and iOS apps incorporate. What's the best way to do this? I've read the flutter.dev instructions regarding creating a module. Even if I add a module to both Android and iOS projects, I'm still not sharing code between the projects yet. So this is what I believe I need to do:
Does this look right? Have I missed something?
void _onCreate(Database db, int version) async {
await db.execute("CREATE TABLE " +
TASK_TABLE_NAME +
" ("
"id STRING PRIMARY KEY, "
"tasktype TEXT, "
"tasktitle TEXT, "
"taskdescription TEXT, "
"taskcompleted TEXT, "
"datetime TEXT, "
"datetimedue TEXT, "
"taskpriority TEXT)");
}
newTask(newTask) async {
var dbClient = await db;
var result = await dbClient.rawInsert(
"INSERT INTO " +
TASK_TABLE_NAME +
" ("
"id STRING PRIMARY KEY, "
"tasktype TEXT, "
"tasktitle TEXT, "
"taskdescription TEXT, "
"taskcompleted TEXT, "
"datetime TEXT, "
"datetimedue TEXT, "
"taskpriority TEXT) VALUES (?, ?, ?, ?, ?, ?, ?, ?)",
[
newTask.datetime,
newTask.taskType,
newTask.taskTitle,
newTask.taskDescription,
newTask.taskCompleted,
newTask.datetime,
newTask.datetimedue,
newTask.taskPriority
]);
return result;
}
int id2 = await txn.rawInsert(
'INSERT INTO Test(name, value, num) VALUES(?, ?, ?)',
['another name', 12345678, 3.1416]);
print('inserted2: $id2');
});
yeetmeokayimdead2222
what is future/stream?