|
@@ -9,10 +9,10 @@ import 'package:gobang/memorandum/Checkerboard.dart';
|
|
|
import 'package:gobang/utils/TipsDialog.dart';
|
|
|
import 'package:gobang/viewModel/GameViewModel.dart';
|
|
|
|
|
|
-import 'bridge/CircleShape.dart';
|
|
|
-import 'factory/BlackThemeFactory.dart';
|
|
|
-import 'factory/BlueThemeFactory.dart';
|
|
|
-import 'flyweight/Position.dart';
|
|
|
+import '../bridge/CircleShape.dart';
|
|
|
+import '../factory/BlackThemeFactory.dart';
|
|
|
+import '../factory/BlueThemeFactory.dart';
|
|
|
+import '../flyweight/Position.dart';
|
|
|
|
|
|
var width = 0.0;
|
|
|
|
|
@@ -286,7 +286,7 @@ class ChessPainter extends CustomPainter {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- WidgetsBinding.instance!.addPostFrameCallback((_) {
|
|
|
+ WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
|
if (add && _position!.chess is WhiteChess) {
|
|
|
_function();
|
|
|
}
|
|
@@ -302,7 +302,6 @@ class ChessPainter extends CustomPainter {
|
|
|
|
|
|
class CheckerBoardPainter extends CustomPainter {
|
|
|
static List<CrossOverBean> _crossOverBeanList = [];
|
|
|
- static int _state = 0;
|
|
|
|
|
|
@override
|
|
|
void paint(Canvas canvas, Size size) {
|