roundedInputDecoration method
InputDecoration
roundedInputDecoration({
- String? hintText,
- TextStyle? hintStyle,
- Color borderSizeColor = Colors.transparent,
- Color? fillColor,
- EdgeInsetsGeometry? contentPadding,
Implementation
InputDecoration roundedInputDecoration(
{String? hintText,
TextStyle? hintStyle,
Color borderSizeColor = Colors.transparent,
Color? fillColor,
EdgeInsetsGeometry? contentPadding}) {
return InputDecoration(
contentPadding: contentPadding,
hintText: hintText,
hintStyle: hintStyle,
filled: fillColor != null,
counterText: '',
fillColor: fillColor ?? Colors.transparent,
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(w)), borderSide: BorderSide(color: borderSizeColor)),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(w)), borderSide: BorderSide(color: borderSizeColor)),
border: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(w)), borderSide: BorderSide(color: borderSizeColor)),
);
}