UpTextField constructor
const
UpTextField({
- Key? key,
- UpInputType? type,
- FocusNode? focusNode,
- UpValidation? validation,
- bool obscureText = false,
- bool readOnly = false,
- TextEditingController? controller,
- TextInputType keyboardType = TextInputType.text,
- String? autofillHint,
- dynamic onTap()?,
- String? initialValue,
- String? label = "",
- dynamic onBlur()?,
- EdgeInsetsGeometry? contentPadding,
- bool isFlexible = false,
- dynamic onSaved()?,
- dynamic onChanged()?,
- int maxLines = 1,
- UpColorType? colorType,
- UpStyle? style,
- String? hint,
- Widget? prefixIcon,
- Widget? suffixIcon,
- dynamic onFieldSubmitted()?,
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);