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

Reduce cells border width on big grids

parent 70f01cce
No related branches found
No related tags found
1 merge request!40Resolve "Reduce cells border width on big grids"
Pipeline #1767 passed
This commit is part of merge request !40. Comments created here will be created in the context of that merge request.
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
app.versionName=0.0.37
app.versionCode=37
app.versionName=0.0.38
app.versionCode=38
Reduce cells border width on big grids.
Diminution de l'épaisseur des bordures des cellules sur les grandes grilles.
......@@ -13,7 +13,6 @@ class Cell {
@required this.isFixed,
);
static double cellBorderWidth = 3;
static Color cellBorderDarkColor = Colors.black;
static Color cellBorderLightColor = Colors.grey;
static Color cellBorderSelectedColor = Colors.red;
......@@ -130,6 +129,15 @@ class Cell {
int blockSizeHorizontal = myProvider.blockSizeHorizontal;
int blockSizeVertical = myProvider.blockSizeVertical;
double cellBorderWidth = 4;
if (blockSizeVertical * blockSizeHorizontal > 8) {
cellBorderWidth = 2;
if (blockSizeVertical * blockSizeHorizontal > 10) {
cellBorderWidth = 1;
}
}
Border borders = Border.all(
color: cellBorderSelectedColor,
width: cellBorderWidth,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment