UpTextField constructor

const UpTextField({
  1. Key? key,
  2. UpInputType? type,
  3. FocusNode? focusNode,
  4. UpValidation? validation,
  5. bool obscureText = false,
  6. bool readOnly = false,
  7. TextEditingController? controller,
  8. TextInputType keyboardType = TextInputType.text,
  9. String? autofillHint,
  10. dynamic onTap()?,
  11. String? initialValue,
  12. String? label = "",
  13. dynamic onBlur()?,
  14. EdgeInsetsGeometry? contentPadding,
  15. bool isFlexible = false,
  16. dynamic onSaved(
    1. String?
    )?,
  17. dynamic onChanged(
    1. String?
    )?,
  18. int maxLines = 1,
  19. UpColorType? colorType,
  20. UpStyle? style,
  21. String? hint,
  22. Widget? prefixIcon,
  23. Widget? suffixIcon,
  24. dynamic onFieldSubmitted(
    1. String
    )?,
})

Implementation

const UpTextField({
  Key? key,
  this.type,
  this.focusNode,
  this.validation,
  this.obscureText = false,
  this.readOnly = false,
  this.controller,
  this.keyboardType = TextInputType.text,
  this.autofillHint,
  this.onTap,
  this.initialValue,
  this.label = "",
  this.onBlur,
  this.contentPadding,
  this.isFlexible = false,
  this.onSaved,
  this.onChanged,
  this.maxLines = 1,
  this.colorType,
  this.style,
  this.hint,
  this.prefixIcon,
  this.suffixIcon,
  this.onFieldSubmitted,
}) : super(key: key);