titleEdgeInsets static method

EdgeInsets titleEdgeInsets(
  1. String type,
  2. bool isRequire,
  3. FormItemConfig themeData
)

标题行的左间距

Implementation

static EdgeInsets titleEdgeInsets(
    String type, bool isRequire, FormItemConfig themeData) {
  if (isRequire && type == PrefixIconType.normal) {
    return themeData.titlePaddingSm;
  }
  return themeData.titlePaddingLg;
}