From 3d01120ce6f23bd27807fec2e26dc14235aa738f Mon Sep 17 00:00:00 2001 From: andrei Date: Tue, 2 Nov 2021 22:58:45 -0400 Subject: [PATCH] fixed get all functions --- lib/db_helper.dart | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/db_helper.dart b/lib/db_helper.dart index 392df54..c983d87 100644 --- a/lib/db_helper.dart +++ b/lib/db_helper.dart @@ -52,17 +52,15 @@ class DBHelper { return database; } - Future> getAllLists() async { + Future>> getAllLists() async { Database db = await database; - return db.query("List", where: "is_template = ?", whereArgs: ['0']) - as Map; + return db.query("List", where: "is_template = ?", whereArgs: ['0']); } - Future> getAllTemplates() async { + Future>> getAllTemplates() async { Database db = await database; - return db.query("List", where: "is_template = ?", whereArgs: ['1']) - as Map; + return db.query("List", where: "is_template = ?", whereArgs: ['1']); } }