Refactor display to separate widget

This commit is contained in:
2025-02-22 14:54:54 +01:00
parent 283c9dbbb3
commit a4a95c3c41
4 changed files with 276 additions and 2 deletions

View File

@@ -93,6 +93,11 @@ last_updated = excluded.last_updated
);
return games.map((e) => Game.fromMap(e)).toList();
}
static Future<void> delete(Game game) async {
final db = DB.db;
await db.rawDelete('DELETE FROM games WHERE name = ?', [game.name]);
}
}
//CREATE TABLE IF NOT EXISTS games (