calculateHeight static method
Helper to calculate the height of the AddressInput widget
Implementation
static double calculateHeight({
bool showTypesSelection = true,
bool showDescriptionField = false,
bool showCountyField = false,
bool showCountryField = false,
}) {
double totalHeight = 517.0;
if (!showTypesSelection) {
totalHeight -= 52.0;
}
if (!showDescriptionField) {
totalHeight -= 85.0;
}
if (!showCountyField && !showCountryField) {
totalHeight -= 85.0;
}
return totalHeight;
}