AppTextField constructor

const AppTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? hintText,
  4. String? labelText,
  5. String? initialValue,
  6. TextInputType? keyboardType,
  7. bool obscureText = false,
  8. bool readOnly = false,
  9. int? maxLines = 1,
  10. int? minLines,
  11. int? maxLength,
  12. TextAlign textAlign = TextAlign.start,
  13. TextCapitalization textCapitalization = TextCapitalization.none,
  14. TextInputAction? textInputAction,
  15. TextStyle? textStyle,
  16. TextStyle? hintStyle,
  17. TextStyle? labelStyle,
  18. Color? fillColor,
  19. bool filled = true,
  20. Widget? prefixIcon,
  21. Widget? suffixIcon,
  22. VoidCallback? onTap,
  23. ValueChanged<String>? onChanged,
  24. ValueChanged<String>? onSubmitted,
  25. FormFieldValidator<String>? validator,
  26. InputBorder? enabledBorder,
  27. InputBorder? focusedBorder,
  28. InputBorder? errorBorder,
  29. InputBorder? disabledBorder,
  30. EdgeInsetsGeometry? contentPadding,
  31. FocusNode? focusNode,
  32. bool enabled = true,
  33. bool autoFocus = false,
})

Implementation

const AppTextField({
  super.key,
  this.controller,
  this.hintText,
  this.labelText,
  this.initialValue,
  this.keyboardType,
  this.obscureText = false,
  this.readOnly = false,
  this.maxLines = 1,
  this.minLines,
  this.maxLength,
  this.textAlign = TextAlign.start,
  this.textCapitalization = TextCapitalization.none,
  this.textInputAction,
  this.textStyle,
  this.hintStyle,
  this.labelStyle,
  this.fillColor,
  this.filled = true,
  this.prefixIcon,
  this.suffixIcon,
  this.onTap,
  this.onChanged,
  this.onSubmitted,
  this.validator,
  this.enabledBorder,
  this.focusedBorder,
  this.errorBorder,
  this.disabledBorder,
  this.contentPadding,
  this.focusNode,
  this.enabled = true,
  this.autoFocus = false,
});