DefaultTextField constructor

const DefaultTextField({
  1. Key? key,
  2. bool? isBank,
  3. String? hint,
  4. String? label,
  5. String? errorMessage,
  6. String? obscuringCharacter = '●',
  7. bool? enabled = true,
  8. dynamic onTap()?,
  9. TextInputAction? action,
  10. TextInputType? keyboardType,
  11. int? maxLines = 1,
  12. int? minLines = 1,
  13. bool? isQty = false,
  14. EdgeInsets? padding,
  15. @required TextEditingController? controller,
  16. EdgeInsets? margin = const EdgeInsets.all(0),
  17. bool? obscureText,
  18. TextInputType? textInputType = TextInputType.text,
  19. TextInputAction? textInputAction = TextInputAction.done,
  20. dynamic onFieldSubmitted(
    1. String
    )?,
  21. dynamic onChanged(
    1. String
    )?,
  22. Widget? suffix,
  23. String? assets,
  24. FocusNode? node,
  25. BorderRadius? borderRadius,
  26. Border? border,
  27. Color? colorsText,
  28. bool? enableTextView,
  29. String? condition,
  30. Color? colorHint,
  31. bool? isPassword,
  32. String? suffixIcon,
  33. Icons? suffixIcons,
  34. String? customSuffixIcon,
  35. bool? isSearch,
  36. bool? isMessage,
  37. bool? isEdit,
  38. bool? counterText,
  39. int? maxLenght = 3,
  40. Color? focusedBorderColor,
  41. TextAlign? textAlign,
  42. dynamic onEditingFinished()?,
  43. bool? isCurrency,
  44. bool? isWeight,
  45. Color? colorBackground,
  46. bool? autoFocus,
  47. dynamic onTapSuffix()?,
  48. bool? isEnableBorder,
  49. bool? isHideHint,
  50. @required FocusNode? focusNode,
})

Implementation

const DefaultTextField(
    {Key? key,
      this.isBank,
      this.hint,
      this.label,
      this.errorMessage,
      this.obscuringCharacter = '●',
      this.enabled = true,
      this.onTap,
      this.action,
      this.keyboardType,
      this.maxLines = 1,
      this.minLines = 1,
      this.isQty = false,
      this.padding,
      @required this.controller,
      this.margin = const EdgeInsets.all(0),
      this.obscureText,
      this.textInputType = TextInputType.text,
      this.textInputAction = TextInputAction.done,
      this.onFieldSubmitted,
      this.onChanged,
      // this.onChange,
      this.suffix,
      this.assets,
      this.node,
      this.borderRadius,
      this.border,
      this.colorsText,
      this.enableTextView,
      this.condition,
      this.colorHint,
      this.isPassword,
      this.suffixIcon,
      this.suffixIcons,
      this.customSuffixIcon,
      this.isSearch,
      this.isMessage,
      this.isEdit,
      this.counterText,
      this.maxLenght = 3,
      this.focusedBorderColor,
      this.textAlign,
      this.onEditingFinished,
      this.isCurrency,
      this.isWeight,
      this.colorBackground,
      this.autoFocus,
      this.onTapSuffix,
      this.isEnableBorder,
      this.isHideHint,
      @required this.focusNode})
    : super(key: key);