Skip to content
Snippets Groups Projects
Commit f3bfd8f6 authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Add help symbol on first top cell

parent 24a7397e
No related branches found
No related tags found
1 merge request!17Resolve "Add help symbol on first top cell"
Pipeline #2819 passed
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
......@@ -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);
return Container(
child: Image(
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: cellColorImage,
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment