AppInput constructor

const AppInput({
  1. Key? key,
  2. String? label,
  3. String? hint,
  4. String? initialValue,
  5. IconData? prefixIcon,
  6. IconData? suffixIcon,
  7. InputType type = InputType.text,
  8. dynamic onChanged(
    1. String
    )?,
  9. dynamic onSubmitted(
    1. String
    )?,
  10. VoidCallback? onTap,
  11. TextEditingController? controller,
  12. FocusNode? focusNode,
  13. String? validator(
    1. String?
    )?,
  14. List<TextInputFormatter>? inputFormatters,
  15. TextInputAction? textInputAction,
  16. bool autofocus = false,
  17. bool readOnly = false,
  18. bool enabled = true,
  19. int? maxLength,
  20. int? maxLines,
  21. int? minLines,
  22. double? width,
  23. double? height,
  24. EdgeInsetsGeometry? contentPadding,
  25. Color? fillColor,
  26. Color? borderColor,
  27. Color? focusedBorderColor,
  28. Color? textColor,
  29. TextStyle? style,
  30. TextStyle? labelStyle,
  31. TextStyle? hintStyle,
  32. VoidCallback? suffixIconOnPressed,
  33. Widget? suffix,
  34. Widget? prefix,
  35. String? errorText,
  36. BorderRadius? borderRadius,
  37. double borderWidth = 1.0,
  38. double focusedBorderWidth = 2.0,
  39. TextAlign textAlign = TextAlign.start,
})

Implementation

const AppInput({
  Key? key,
  this.label,
  this.hint,
  this.initialValue,
  this.prefixIcon,
  this.suffixIcon,
  this.type = InputType.text,
  this.onChanged,
  this.onSubmitted,
  this.onTap,
  this.controller,
  this.focusNode,
  this.validator,
  this.inputFormatters,
  this.textInputAction,
  this.autofocus = false,
  this.readOnly = false,
  this.enabled = true,
  this.maxLength,
  this.maxLines,
  this.minLines,
  this.width,
  this.height,
  this.contentPadding,
  this.fillColor,
  this.borderColor,
  this.focusedBorderColor,
  this.textColor,
  this.style,
  this.labelStyle,
  this.hintStyle,
  this.suffixIconOnPressed,
  this.suffix,
  this.prefix,
  this.errorText,
  this.borderRadius,
  this.borderWidth = 1.0,
  this.focusedBorderWidth = 2.0,
  this.textAlign = TextAlign.start,
}) : super(key: key);