AppInput constructor
const
AppInput({
- Key? key,
- String? label,
- String? hint,
- String? initialValue,
- IconData? prefixIcon,
- IconData? suffixIcon,
- InputType type = InputType.text,
- dynamic onChanged()?,
- dynamic onSubmitted()?,
- VoidCallback? onTap,
- TextEditingController? controller,
- FocusNode? focusNode,
- String? validator()?,
- List<
TextInputFormatter> ? inputFormatters, - TextInputAction? textInputAction,
- bool autofocus = false,
- bool readOnly = false,
- bool enabled = true,
- int? maxLength,
- int? maxLines,
- int? minLines,
- double? width,
- double? height,
- EdgeInsetsGeometry? contentPadding,
- Color? fillColor,
- Color? borderColor,
- Color? focusedBorderColor,
- Color? textColor,
- TextStyle? style,
- TextStyle? labelStyle,
- TextStyle? hintStyle,
- VoidCallback? suffixIconOnPressed,
- Widget? suffix,
- Widget? prefix,
- String? errorText,
- BorderRadius? borderRadius,
- double borderWidth = 1.0,
- double focusedBorderWidth = 2.0,
- 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);