flutter: Only show the notation on board on two sides
On left and bottom. Gets a bit cluttered otherwise.
This commit is contained in:
parent
f63831ee2a
commit
2ab065e3c4
|
@ -130,11 +130,13 @@ class BoardPainter extends PiecesBasePainter {
|
||||||
|
|
||||||
/* Show notations "a b c d e f" on board */
|
/* Show notations "a b c d e f" on board */
|
||||||
|
|
||||||
notationPainterV.paint(
|
if (Config.developerMode) {
|
||||||
canvas,
|
notationPainterV.paint(
|
||||||
Offset(left + squareWidth * i - notationPainterV.width / 2,
|
canvas,
|
||||||
top - offset - notationPainterV.height / 2),
|
Offset(left + squareWidth * i - notationPainterV.width / 2,
|
||||||
);
|
top - offset - notationPainterV.height / 2),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
notationPainterV.paint(
|
notationPainterV.paint(
|
||||||
canvas,
|
canvas,
|
||||||
|
@ -150,11 +152,13 @@ class BoardPainter extends PiecesBasePainter {
|
||||||
top + squareWidth * i - notationPainterH.height / 2),
|
top + squareWidth * i - notationPainterH.height / 2),
|
||||||
);
|
);
|
||||||
|
|
||||||
notationPainterH.paint(
|
if (Config.developerMode) {
|
||||||
canvas,
|
notationPainterH.paint(
|
||||||
Offset(left + squareWidth * 6 + offset - notationPainterH.width / 2,
|
canvas,
|
||||||
top + squareWidth * i - notationPainterH.height / 2),
|
Offset(left + squareWidth * 6 + offset - notationPainterH.width / 2,
|
||||||
);
|
top + squareWidth * i - notationPainterH.height / 2),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue