AppTextField constructor
AppTextField({
- String? hint,
- double? hintSize,
- String label = "",
- String? title,
- TextInputType keyboardType = TextInputType.text,
- FormFieldValidator<
String> ? validator, - dynamic onChanged()?,
- dynamic onSubmit()?,
- bool obscureText = false,
- TextEditingController? controller,
- bool readOnly = false,
- GestureTapCallback? onTap,
- Widget? icon,
- int? maxLength,
- String? initValue,
- bool enable = true,
- String? image,
- double? imageSize = 24,
- Widget? endSuffix,
- bool enableEdit = false,
- Widget? endIcon,
- String? suffix,
- GestureTapCallback? onSuffixTap,
- int maxLines = 1,
- bool showCounter = false,
- List<
TextInputFormatter> ? formatter, - FocusNode? focusNode,
- Color? iconColor,
- Color fillColor = AppColors.transparent,
- Color? hintColor,
- Color? labelColor,
- double radius = _AppTextFieldTheme.small,
- bool enableInteractiveSelection = true,
- bool showBorder = true,
- double? height,
- TextAlign textAlign = TextAlign.start,
- TextDirection? textDirection,
- bool autofocus = false,
- Key? key,
Implementation
AppTextField({
this.hint,
this.hintSize,
this.label = "",
this.title,
this.keyboardType = TextInputType.text,
this.validator,
this.onChanged,
this.onSubmit,
this.obscureText = false,
this.controller,
this.readOnly = false,
this.onTap,
this.icon,
this.maxLength,
this.initValue,
this.enable = true,
this.image,
this.imageSize = 24,
this.endSuffix,
this.enableEdit = false,
this.endIcon,
this.suffix,
this.onSuffixTap,
this.maxLines = 1,
this.showCounter = false,
this.formatter,
this.focusNode,
this.iconColor,
this.fillColor = AppColors.transparent,
this.hintColor,
this.labelColor,
this.radius = _AppTextFieldTheme.small,
this.enableInteractiveSelection = true,
this.showBorder = true,
this.height,
this.textAlign = TextAlign.start,
this.textDirection,
this.autofocus = false,
super.key,
});