calculateHeight static method

double calculateHeight({
  1. required bool showDescriptionField,
  2. required bool showTypeSelectionField,
})

Helper to calculate the height of the ContactInput widget

Implementation

static double calculateHeight({
  required bool showDescriptionField,
  required bool showTypeSelectionField,
}) {
  double totalHeight = 210.0;
  if (!showDescriptionField) {
    totalHeight -= 85.0;
  }
  return totalHeight;
}