flutter: 吃子时不再画叉
实际上画叉的位置也不对,始终在棋盘左上角。 不画叉,当去掉棋子,留着阴影显示,效果也不错。 顺带升级版本到 v0.10.3
This commit is contained in:
parent
bb7dead4eb
commit
ee41ff9bad
|
@ -140,13 +140,6 @@ class PiecesPainter extends PiecesBasePainter {
|
||||||
break;
|
break;
|
||||||
case Piece.ban:
|
case Piece.ban:
|
||||||
print("pps.piece is 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;
|
break;
|
||||||
default:
|
default:
|
||||||
assert(false);
|
assert(false);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
name: sanmill
|
name: sanmill
|
||||||
description: A new Flutter project.
|
description: A new Flutter project.
|
||||||
|
|
||||||
version: 0.10.2+1
|
version: 0.10.3+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.1.0 <3.0.0"
|
sdk: ">=2.1.0 <3.0.0"
|
||||||
|
|
Loading…
Reference in New Issue