NxTextFieldBox constructor

const NxTextFieldBox({
  1. Key? key,
  2. double borderRadius = 8,
  3. double padding = 8,
  4. Widget? prefix,
  5. VoidCallback? prefixClicked,
  6. Widget? suffix,
  7. VoidCallback? suffixClicked,
  8. bool isObsecure = false,
  9. String? textHint,
  10. String? textError = '',
  11. String? textSuccess = '',
  12. String? validatorText = '',
  13. TextInputType inputType = TextInputType.text,
  14. TextEditingController? controller,
  15. FormFieldValidator<String>? validator,
  16. Color? backgroundColor,
  17. Color? borderColor,
  18. Color? iconColor,
  19. Color? textColor,
  20. List<TextInputFormatter>? inputFormatters,
  21. double fontSize = 14,
  22. FontWeight fontWeight = FontWeight.w400,
  23. TextInputAction? inputAction,
  24. dynamic onFieldSubmitted(
    1. String
    )?,
  25. FocusNode? focusNode,
  26. bool enable = true,
  27. dynamic onChanged(
    1. String
    )?,
  28. List<BoxShadow>? boxShadow,
  29. 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);