From f3bfd8f6d2a0bdce251bd2d2342b21115d80af37 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Beno=C3=AEt=20Harrault?= <benoit@harrault.fr>
Date: Tue, 21 Jun 2022 11:15:00 +0200
Subject: [PATCH] Add help symbol on first top cell

---
 android/gradle.properties |  4 ++--
 lib/entities/cell.dart    | 34 ++++++++++++++++++++++++++++------
 2 files changed, 30 insertions(+), 8 deletions(-)

diff --git a/android/gradle.properties b/android/gradle.properties
index 777ac2d..cd2d833 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.16
-app.versionCode=16
+app.versionName=0.0.17
+app.versionCode=17
diff --git a/lib/entities/cell.dart b/lib/entities/cell.dart
index e284b70..f86400d 100644
--- a/lib/entities/cell.dart
+++ b/lib/entities/cell.dart
@@ -10,15 +10,37 @@ class Cell {
     @required this.value,
   );
 
-  Container widget(Data myProvider, int row, int col) {
+  Widget widget(Data myProvider, int row, int col) {
     String imageAsset = this.getImageAssetName(myProvider);
 
+    Image cellColorImage = Image(
+      image: AssetImage(imageAsset),
+      fit: BoxFit.fill,
+      key: ValueKey<int>(imageAsset.hashCode),
+    );
+
+    if ((row == 0) && (col == 0)) {
+      return Stack(
+        alignment: Alignment.center,
+        children: <Widget>[
+          cellColorImage,
+          Center(
+            child: Text(
+                '•',
+                style: TextStyle(
+                  color: Colors.black,
+                  fontSize: 30.0,
+                  fontWeight: FontWeight.w800,
+                ),
+                textAlign: TextAlign.center
+              ),
+          ),
+        ]
+      );
+    }
+
     return Container(
-      child: Image(
-        image: AssetImage(imageAsset),
-        fit: BoxFit.fill,
-        key: ValueKey<int>(imageAsset.hashCode),
-      ),
+      child: cellColorImage,
     );
   }
 
-- 
GitLab