From 38c2b5c7a40bfb242eb6c831b6ecc66c0679304e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Harrault?= <benoit@harrault.fr> Date: Thu, 23 Jun 2022 10:11:22 +0200 Subject: [PATCH] Fix display first cell on big boards --- android/gradle.properties | 4 ++-- lib/entities/cell.dart | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/android/gradle.properties b/android/gradle.properties index cd2d833..30298b3 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,5 +1,5 @@ org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true -app.versionName=0.0.17 -app.versionCode=17 +app.versionName=0.0.18 +app.versionCode=18 diff --git a/lib/entities/cell.dart b/lib/entities/cell.dart index f86400d..4799396 100644 --- a/lib/entities/cell.dart +++ b/lib/entities/cell.dart @@ -20,6 +20,8 @@ class Cell { ); if ((row == 0) && (col == 0)) { + double blackPointFontSize = 30.0 - (myProvider.boardSize); + return Stack( alignment: Alignment.center, children: <Widget>[ @@ -29,7 +31,7 @@ class Cell { '•', style: TextStyle( color: Colors.black, - fontSize: 30.0, + fontSize: blackPointFontSize, fontWeight: FontWeight.w800, ), textAlign: TextAlign.center -- GitLab