NxTextFieldBox constructor

const NxTextFieldBox({
  1. Key? key,
  2. double borderRadius = 8,
  3. double padding = 8,
  4. IconData? icon,
  5. IconData? suffixIcon,
  6. bool isObsecure = false,
  7. String? textHint,
  8. String? textError = "",
  9. String? validatorText = "",
  10. TextInputType inputType = TextInputType.text,
  11. TextEditingController? controller,
  12. FormFieldValidator<String>? validator,
  13. Color? backgroundColor,
  14. Color? borderColor,
  15. Color? iconColor,
  16. Color? textColor,
  17. List<TextInputFormatter>? inputFormatters,
  18. double fontSize = 16,
  19. TextInputAction? inputAction,
  20. dynamic onFieldSubmitted(
    1. String
    )?,
  21. FocusNode? focusNode,
  22. bool enable = true,
  23. dynamic onChanged(
    1. String
    )?,
  24. VoidCallback? suffixIconClicked,
  25. 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);