filled static method

InputDecoration filled({
  1. required String label,
  2. String? hintText,
  3. String? errorText,
  4. Widget? prefixIcon,
  5. Widget? suffixIcon,
  6. double? borderRadius,
  7. Color? fillColor,
})

Returns a filled background style with optional border radius and color.

Implementation

static InputDecoration filled({
  required String label,
  String? hintText,
  String? errorText,
  Widget? prefixIcon,
  Widget? suffixIcon,
  double? borderRadius,
  Color? fillColor,
}) {
  return _baseDecoration(
    label: label,
    hintText: hintText,
    errorText: errorText,
    prefixIcon: prefixIcon,
    suffixIcon: suffixIcon,
    filled: true,
    fillColor: fillColor ?? defaultFillColor,
    border: OutlineInputBorder(
      borderRadius: BorderRadius.circular(borderRadius ?? 10),
    ),
  );
}