NxTextFieldBox constructor
const
NxTextFieldBox({
- Key? key,
- double borderRadius = 8,
- double padding = 8,
- IconData? icon,
- IconData? suffixIcon,
- bool isObsecure = false,
- String? textHint,
- String? textError = "",
- String? validatorText = "",
- TextInputType inputType = TextInputType.text,
- TextEditingController? controller,
- FormFieldValidator<
String> ? validator, - Color? backgroundColor,
- Color? borderColor,
- Color? iconColor,
- Color? textColor,
- List<
TextInputFormatter> ? inputFormatters, - double fontSize = 16,
- TextInputAction? inputAction,
- dynamic onFieldSubmitted()?,
- FocusNode? focusNode,
- bool enable = true,
- dynamic onChanged()?,
- VoidCallback? suffixIconClicked,
- List<
BoxShadow> ? boxShadow,
Implementation
const NxTextFieldBox({
Key? key,
this.borderRadius = 8,
this.padding = 8,
this.icon,
this.suffixIcon,
this.isObsecure = false,
this.textHint,
this.textError = "",
this.validatorText = "",
this.inputType = TextInputType.text,
this.controller,
this.validator,
this.backgroundColor,
this.borderColor,
this.iconColor,
this.textColor,
this.inputFormatters,
this.fontSize = 16,
this.inputAction,
this.onFieldSubmitted,
this.focusNode,
this.enable = true,
this.onChanged,
this.suffixIconClicked,
this.boxShadow,
}) : super(key: key);