flutter: 吃子时不再画叉

实际上画叉的位置也不对,始终在棋盘左上角。
不画叉,当去掉棋子,留着阴影显示,效果也不错。

顺带升级版本到 v0.10.3
This commit is contained in:
Calcitem 2020-11-29 01:17:15 +08:00
parent bb7dead4eb
commit ee41ff9bad
2 changed files with 1 additions and 8 deletions

View File

@ -140,13 +140,6 @@ class PiecesPainter extends PiecesBasePainter {
break;
case Piece.ban:
print("pps.piece is Ban");
paint.color = UIColors.banBorderColor;
// TODO
paint.color = UIColors.banColor;
canvas.drawLine(new Offset(0, 0),
new Offset(pieceInnerRadius, pieceInnerRadius), paint);
canvas.drawLine(new Offset(pieceInnerRadius, 0),
new Offset(0, pieceInnerRadius), paint);
break;
default:
assert(false);

View File

@ -1,7 +1,7 @@
name: sanmill
description: A new Flutter project.
version: 0.10.2+1
version: 0.10.3+1
environment:
sdk: ">=2.1.0 <3.0.0"