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%
var secureRandom = SecureRandom();
checkPreparing() {
var docSnapshot = FirebaseFirestore.instance
.collection('bookings')
.where('customer', isEqualTo: user_email22.toString());
var docSnapshot2 =
docSnapshot.where('status2', isEqualTo: 'preparing').snapshots();
return docSnapshot2;
}
position: RelativeRect.fromLTRB(100, 400, 100, 400)
for example is fixed. Is there any way to make it show dynamically according to the position of the current element in the listview?. Basically I am hoping to change the property position such that the menu shows relatively to the selected listTile
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;
}