From 299b77d24947c2c29ec55e4a21612c24a42ad9ad Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 28 May 2023 14:56:01 +0200 Subject: [PATCH] Resolve problems in files. --- lib/chess_bloc/chess_position.dart | 4 ++-- lib/pages/lobby_selector.dart | 1 - lib/utils/chess_router.dart | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/chess_bloc/chess_position.dart b/lib/chess_bloc/chess_position.dart index 98a18e6..a25b9d7 100644 --- a/lib/chess_bloc/chess_position.dart +++ b/lib/chess_bloc/chess_position.dart @@ -96,8 +96,8 @@ class ChessPosition { } void logHistory(ChessMoveHistory hist) { - hist.forEach((element) { + for (var element in hist) { log('${element.from.toAlphabetical()} -> ${element.to.toAlphabetical()}'); - }); + } } } diff --git a/lib/pages/lobby_selector.dart b/lib/pages/lobby_selector.dart index 93f1f58..41ddf81 100644 --- a/lib/pages/lobby_selector.dart +++ b/lib/pages/lobby_selector.dart @@ -1,5 +1,4 @@ import 'dart:developer'; -import 'dart:io'; import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; diff --git a/lib/utils/chess_router.dart b/lib/utils/chess_router.dart index f096fe1..afaa40e 100644 --- a/lib/utils/chess_router.dart +++ b/lib/utils/chess_router.dart @@ -1,5 +1,4 @@ import 'package:go_router/go_router.dart'; -import 'package:mchess/pages/chess_game.dart'; import 'package:mchess/pages/lobby_selector.dart'; import 'package:mchess/pages/prepare_chess_game.dart';