changed (hopefully) everything to new List with TextEditingControllers
time forgot to save sth ig
This commit is contained in:
@@ -31,6 +31,7 @@ class ExcursionDBHelper implements IDb{
|
||||
}
|
||||
|
||||
// The function that helps
|
||||
// TODO Change to right cols
|
||||
@override
|
||||
onCreateDatabases(Database excursionDB, int version) async {
|
||||
await excursionDB.execute(
|
||||
@@ -41,7 +42,7 @@ class ExcursionDBHelper implements IDb{
|
||||
|
||||
// Function to add a finished entry and return its ID
|
||||
@override
|
||||
Future<int> addMainEntry(Map<String, dynamic> excursion) async {
|
||||
Future<int> addMainEntry(Map<String, String> excursion) async {
|
||||
var excursionDBClient = await dB;
|
||||
final existingID = await excursionDBClient.query(
|
||||
'excursion',
|
||||
@@ -64,7 +65,7 @@ class ExcursionDBHelper implements IDb{
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> updateMainEntry(Map<String, dynamic> excursion) async {
|
||||
Future<void> updateMainEntry(Map<String, String> excursion) async {
|
||||
var excursionDBClient = await dB;
|
||||
|
||||
await excursionDBClient
|
||||
@@ -82,7 +83,7 @@ class ExcursionDBHelper implements IDb{
|
||||
|
||||
// same thing as before but with templatews
|
||||
@override
|
||||
Future<void> addTemplate(Map<String, dynamic> templates) async {
|
||||
Future<void> addTemplate(Map<String, String> templates) async {
|
||||
var excursionDBClient = await dB;
|
||||
|
||||
final existingCID = await excursionDBClient.query(
|
||||
@@ -103,7 +104,7 @@ class ExcursionDBHelper implements IDb{
|
||||
|
||||
// Updates a existing template
|
||||
@override
|
||||
Future<void> updateTemplate(Map<String, dynamic> template) async {
|
||||
Future<void> updateTemplate(Map<String, String> template) async {
|
||||
var excursionDBClient = await dB;
|
||||
|
||||
await excursionDBClient.update(
|
||||
|
||||
Reference in New Issue
Block a user