errorBorder method
Implementation
InputBorder errorBorder(ZeroTextfieldSize sizeType) {
switch (inputDecorationType) {
case InputDecorationType.outline:
return OutlineInputBorder(
borderSide: BorderSide(color: ZeroColors.dustRed[7], width: 0),
borderRadius: borderRadius(sizeType));
case InputDecorationType.rounded:
return OutlineInputBorder(
borderSide: BorderSide(color: ZeroColors.dustRed[7], width: 0),
borderRadius: borderRadius(sizeType));
case InputDecorationType.underline:
return UnderlineInputBorder(
borderSide: BorderSide(color: ZeroColors.dustRed[7], width: 0),
borderRadius: borderRadius(sizeType));
case InputDecorationType.fill:
return UnderlineInputBorder(
borderSide: BorderSide(color: ZeroColors.dustRed[7], width: 0),
borderRadius: borderRadius(sizeType));
}
}