roundedInputDecoration method

InputDecoration roundedInputDecoration({
  1. String? hintText,
  2. TextStyle? hintStyle,
  3. Color borderSizeColor = Colors.transparent,
  4. Color? fillColor,
  5. 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)),
  );
}