AppTextField constructor
const
AppTextField({
- Key? key,
- List<
TextInputFormatter> ? formatters, - TextEditingController? controller,
- String? hintKey,
- String? labelKey,
- FormFieldValidator<
String> ? validator, - dynamic onChanged(
- String value
- TextInputType? textInputType,
- String? initialValue,
- TextInputAction? textInputAction,
- dynamic onFieldSubmitted()?,
- EdgeInsetsDirectional? margin,
- Widget? suffixIcon,
- Widget? prefixIcon,
- bool enabled = true,
- VoidCallback? onUserTap,
- int? maxLines,
- Color? fillColor,
- bool? isDense,
- TextStyle? hintTextStyle,
- TextDirection? textDirection,
- double? height,
- double cornerRadius = 24,
- TextStyle? textStyle,
- Color? focusedBorderColor = AppColors.secondary,
- double? focusedBorderThickness,
- Color? enabledBorderColor = AppColors.secondary,
- double? enabledBorderThickness,
- Color? errorBorderColor = AppColors.errorColor,
- double? errorBorderThickness,
- bool obscureText = false,
- FocusNode? focusNode,
- TextStyle? labelTextStyle,
- int? maxLength,
Implementation
const AppTextField(
{Key? key,
this.formatters,
this.controller,
this.hintKey,
this.labelKey,
this.validator,
this.onChanged,
this.textInputType,
this.initialValue,
this.textInputAction,
this.onFieldSubmitted,
this.margin,
this.suffixIcon,
this.prefixIcon,
this.enabled = true,
this.onUserTap,
this.maxLines,
this.fillColor,
this.isDense,
this.hintTextStyle,
this.textDirection,
this.height,
this.cornerRadius = 24,
this.textStyle,
this.focusedBorderColor = AppColors.secondary,
this.focusedBorderThickness,
this.enabledBorderColor = AppColors.secondary,
this.enabledBorderThickness,
this.errorBorderColor = AppColors.errorColor,
this.errorBorderThickness,
this.obscureText = false,
this.focusNode,
this.labelTextStyle,
this.maxLength})
: super(key: key);