AppTextField constructor

const AppTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? hintText,
  4. String? labelText,
  5. bool obscureText = false,
  6. Widget? prefixIcon,
  7. Widget? suffixIcon,
  8. FormFieldValidator<String>? validator,
  9. ValueChanged<String>? onChanged,
  10. TextInputType? keyboardType,
  11. int? maxLines = 1,
})

Implementation

const AppTextField({
  super.key,
  this.controller,
  this.hintText,
  this.labelText,
  this.obscureText = false,
  this.prefixIcon,
  this.suffixIcon,
  this.validator,
  this.onChanged,
  this.keyboardType,
  this.maxLines = 1,
});