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

Merge branch '47-reduce-cells-border-width-on-big-grids' into 'master'

Resolve "Reduce cells border width on big grids"

Closes #47

See merge request !40
parents 70f01cce 1c10237a
No related branches found
No related tags found
1 merge request!40Resolve "Reduce cells border width on big grids"
Pipeline #1807 passed
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.
Finish editing this message first!
Please register or to comment