AppTextField constructor

const AppTextField({
  1. Key? key,
  2. List<TextInputFormatter>? formatters,
  3. TextEditingController? controller,
  4. String? hintKey,
  5. String? labelKey,
  6. FormFieldValidator<String>? validator,
  7. dynamic onChanged(
    1. String value
    )?,
  8. TextInputType? textInputType,
  9. String? initialValue,
  10. TextInputAction? textInputAction,
  11. dynamic onFieldSubmitted(
    1. String
    )?,
  12. EdgeInsetsDirectional? margin,
  13. Widget? suffixIcon,
  14. Widget? prefixIcon,
  15. bool enabled = true,
  16. VoidCallback? onUserTap,
  17. int? maxLines,
  18. Color? fillColor,
  19. bool? isDense,
  20. TextStyle? hintTextStyle,
  21. TextDirection? textDirection,
  22. double? height,
  23. double cornerRadius = 24,
  24. TextStyle? textStyle,
  25. Color? focusedBorderColor = AppColors.secondary,
  26. double? focusedBorderThickness,
  27. Color? enabledBorderColor = AppColors.secondary,
  28. double? enabledBorderThickness,
  29. Color? errorBorderColor = AppColors.errorColor,
  30. double? errorBorderThickness,
  31. bool obscureText = false,
  32. FocusNode? focusNode,
  33. TextStyle? labelTextStyle,
  34. 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);