WIP: Implementierung der Games #177

Draft
sneeex wants to merge 10 commits from feature/119-implementierung-der-games into development
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 69f9900f74 - Show all commits

View File

@@ -1,5 +1,9 @@
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- lib/presentation/views/main_menu/settings_view/licenses/oss_licenses.dart
linter:
rules:
avoid_print: false

View File

@@ -383,13 +383,11 @@ class _CreateMatchViewState extends State<CreateMatchView> {
// Loads all games from the database and updates the gamesList.
Future<void> loadGames() async {
print("LOADING GAMES TRIGGERED");
final result = await db.gameDao.getAllGames();
result.sort((a, b) => b.createdAt.compareTo(a.createdAt));
setState(() {
gamesList = result;
});
print(gamesList.map((g) => g.name).join(', '));
print("GAMES LOADED");
}
}