NxTextFieldBox constructor
const
NxTextFieldBox({
- Key? key,
- double borderRadius = 8,
- double padding = 8,
- Widget? prefix,
- VoidCallback? prefixClicked,
- Widget? suffix,
- VoidCallback? suffixClicked,
- bool isObsecure = false,
- String? textHint,
- String? textError = '',
- String? textSuccess = '',
- String? validatorText = '',
- TextInputType inputType = TextInputType.text,
- TextEditingController? controller,
- FormFieldValidator<
String> ? validator, - Color? backgroundColor,
- Color? borderColor,
- Color? iconColor,
- Color? textColor,
- List<
TextInputFormatter> ? inputFormatters, - double fontSize = 14,
- FontWeight fontWeight = FontWeight.w400,
- TextInputAction? inputAction,
- dynamic onFieldSubmitted()?,
- FocusNode? focusNode,
- bool enable = true,
- dynamic onChanged()?,
- List<
BoxShadow> ? boxShadow, - TextAlign textAlign = TextAlign.start,
Implementation
const NxTextFieldBox({
Key? key,
this.borderRadius = 8,
this.padding = 8,
this.prefix,
this.prefixClicked,
this.suffix,
this.suffixClicked,
this.isObsecure = false,
this.textHint,
this.textError = '',
this.textSuccess = '',
this.validatorText = '',
this.inputType = TextInputType.text,
this.controller,
this.validator,
this.backgroundColor,
this.borderColor,
this.iconColor,
this.textColor,
this.inputFormatters,
this.fontSize = 14,
this.fontWeight = FontWeight.w400,
this.inputAction,
this.onFieldSubmitted,
this.focusNode,
this.enable = true,
this.onChanged,
this.boxShadow,
this.textAlign = TextAlign.start,
}) : super(key: key);