flutter: Only show the notation on board on two sides

On left and bottom. Gets a bit cluttered otherwise.
This commit is contained in:
Calcitem 2021-05-20 23:01:09 +08:00
parent f63831ee2a
commit 2ab065e3c4
1 changed files with 14 additions and 10 deletions

View File

@ -130,11 +130,13 @@ class BoardPainter extends PiecesBasePainter {
/* Show notations "a b c d e f" on board */
notationPainterV.paint(
canvas,
Offset(left + squareWidth * i - notationPainterV.width / 2,
top - offset - notationPainterV.height / 2),
);
if (Config.developerMode) {
notationPainterV.paint(
canvas,
Offset(left + squareWidth * i - notationPainterV.width / 2,
top - offset - notationPainterV.height / 2),
);
}
notationPainterV.paint(
canvas,
@ -150,11 +152,13 @@ class BoardPainter extends PiecesBasePainter {
top + squareWidth * i - notationPainterH.height / 2),
);
notationPainterH.paint(
canvas,
Offset(left + squareWidth * 6 + offset - notationPainterH.width / 2,
top + squareWidth * i - notationPainterH.height / 2),
);
if (Config.developerMode) {
notationPainterH.paint(
canvas,
Offset(left + squareWidth * 6 + offset - notationPainterH.width / 2,
top + squareWidth * i - notationPainterH.height / 2),
);
}
}
}