CoderTextField constructor

const CoderTextField({
  1. Key? key,
  2. required TextEditingController controller,
  3. String? hint,
  4. IconData? prefixIcon,
  5. Widget? suffixIcon,
  6. bool obscureText = false,
  7. TextInputType? keyboardType,
  8. List<TextInputFormatter>? inputFormatters,
  9. int? maxLines,
  10. bool enabled = true,
  11. EdgeInsetsGeometry? contentPadding,
})

Creates a CoderTextField with the given configuration.

The controller parameter is required.

Implementation

const CoderTextField({
  super.key,
  required this.controller,
  this.hint,
  this.prefixIcon,
  this.suffixIcon,
  this.obscureText = false,
  this.keyboardType,
  this.inputFormatters,
  this.maxLines,
  this.enabled = true,
  this.contentPadding,
});