fix linter issues
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user