getContentPadding method

EdgeInsets getContentPadding()

Implementation

EdgeInsets getContentPadding() {
  if (widget.type == UFUInputBoxType.inline) {
    return const EdgeInsets.symmetric(horizontal: 8, vertical: 6);
  }

  return EdgeInsets.only(
    left: getHorizontalPadding(),
    right: widget.suffixChild != null ? 0 : getHorizontalPadding(),
    top: getVerticalPadding(),
    bottom: getVerticalPadding(),
  );
}