getHeight method

double getHeight(
  1. InputState? currentState
)

Implementation

double getHeight(InputState? currentState) {
  var height = 0.0;
  switch (currentState) {
    case InputState.NUMBER:
      height = textSize('1234  5678  1234', kCardNumberTextStyle).height + 15;
      break;
    case InputState.NAME:
      height = textSize('hello world', kNametextStyle).height + 15;
      break;
    case InputState.CVV:
    case InputState.VALIDATE:
    case InputState.DONE:
      height = textSize('12/12', kNametextStyle).height + 15;
      break;
  }
  return height;
}