getContentPadding method
Content spacing
Implementation
EdgeInsetsGeometry getContentPadding() {
double contentPaddingLeft = 8;
if (widget.prefixIcon == null) {
if (widget.borderType == VxTextFieldBorderType.roundLine) {
contentPaddingLeft = getBorderRadius();
} else {
contentPaddingLeft = 0.0;
}
}
return EdgeInsets.only(
left: widget.contentPaddingLeft ?? contentPaddingLeft,
right: 8,
top: widget.contentPaddingTop ?? (widget.height - 20) / 2,
bottom: (widget.height - 20) / 2,
);
}