formSpacing static method
Create spacing for form elements
Implementation
static EdgeInsets formSpacing({
FormSpacingType type = FormSpacingType.standard,
}) {
switch (type) {
case FormSpacingType.compact:
return EdgeInsets.symmetric(vertical: 8.0, horizontal: 12.0);
case FormSpacingType.standard:
return EdgeInsets.symmetric(vertical: 12.0, horizontal: 16.0);
case FormSpacingType.comfortable:
return EdgeInsets.symmetric(vertical: 16.0, horizontal: 20.0);
}
}