handleIconAlignment static method

double handleIconAlignment(
  1. double ver
)

Temporary fix to the misalignment of the icon.

Implementation

static double handleIconAlignment(double ver) {
  if (ver > 0.5) {
    ver += (0.5 - ver).abs() / 20;
  } else {
    ver -= (0.5 - ver).abs() / 15;
  }
  return ver;
}