AppTextField constructor
const
AppTextField({
- Key? key,
- TextEditingController? controller,
- String? hintText,
- String? labelText,
- String? initialValue,
- TextInputType? keyboardType,
- bool obscureText = false,
- bool readOnly = false,
- int? maxLines = 1,
- int? minLines,
- int? maxLength,
- TextAlign textAlign = TextAlign.start,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextInputAction? textInputAction,
- TextStyle? textStyle,
- TextStyle? hintStyle,
- TextStyle? labelStyle,
- Color? fillColor,
- bool filled = true,
- Widget? prefixIcon,
- Widget? suffixIcon,
- VoidCallback? onTap,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - FormFieldValidator<
String> ? validator, - InputBorder? enabledBorder,
- InputBorder? focusedBorder,
- InputBorder? errorBorder,
- InputBorder? disabledBorder,
- EdgeInsetsGeometry? contentPadding,
- FocusNode? focusNode,
- bool enabled = true,
- 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,
});