flutter: Change default boardTop from 28 to 36

This commit is contained in:
Calcitem 2021-04-12 00:31:11 +08:00
parent 242338b1fa
commit 73055291dc
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ class Config {
static bool isPieceCountInHandShown = false; static bool isPieceCountInHandShown = false;
static double boardBorderLineWidth = 2.0; static double boardBorderLineWidth = 2.0;
static double boardInnerLineWidth = 2.0; static double boardInnerLineWidth = 2.0;
static double boardTop = 28.0; static double boardTop = 36.0;
// Color // Color
static int boardLineColor = AppTheme.boardLineColor.value; static int boardLineColor = AppTheme.boardLineColor.value;
@ -91,7 +91,7 @@ class Config {
settings['IsPieceCountInHandShown'] ?? false; settings['IsPieceCountInHandShown'] ?? false;
Config.boardBorderLineWidth = settings['BoardBorderLineWidth'] ?? 2; Config.boardBorderLineWidth = settings['BoardBorderLineWidth'] ?? 2;
Config.boardInnerLineWidth = settings['BoardInnerLineWidth'] ?? 2; Config.boardInnerLineWidth = settings['BoardInnerLineWidth'] ?? 2;
Config.boardTop = settings['BoardTop'] ?? 28; Config.boardTop = settings['BoardTop'] ?? 36;
// Color // Color
Config.boardLineColor = Config.boardLineColor =

View File

@ -176,7 +176,7 @@ class _PersonalizationSettingsPageState
value: Config.boardTop.toDouble(), value: Config.boardTop.toDouble(),
min: 0.0, min: 0.0,
max: 288.0, max: 288.0,
divisions: 10, divisions: 288,
label: Config.boardTop.toStringAsFixed(1), label: Config.boardTop.toStringAsFixed(1),
onChanged: (value) { onChanged: (value) {
setState(() { setState(() {