JuiFlatInput2 constructor

JuiFlatInput2({
  1. Key? posKey,
  2. Key? key,
  3. Key? textFieldKey,
  4. String? hintText,
  5. TextEditingController? controller,
  6. Color? color,
  7. Color inputColor = const Color(0xFF213A62),
  8. Color? disabledColor,
  9. Color? borderColor,
  10. Color? disabledBorderColor = const Color(0xFFEEEEEE),
  11. Color? errorColor = JuiColors.error,
  12. Color? hintColor,
  13. Color fillColor = const Color(0x11333333),
  14. Color? buttonColor,
  15. bool? disabled,
  16. FormFieldValidator<String>? validator,
  17. TextInputType? keyboardType,
  18. int? maxLength,
  19. MaxLengthEnforcement? maxLengthEnforcement,
  20. List<TextInputFormatter>? inputFormatters,
  21. bool readOnly = false,
  22. String? label,
  23. Widget? iconButton,
  24. dynamic onChanged(
    1. String? value
    )?,
  25. FocusNode? focusNode,
  26. bool isPassword = false,
  27. String? initialValue,
  28. Iterable<String>? autofillHints,
  29. TextInputAction? textInputAction,
  30. ValueChanged<String>? onFieldSubmitted,
  31. bool? isLoading,
  32. bool isDarkBackground = false,
  33. dynamic onTap()?,
  34. bool isLabelSmall = false,
  35. AutovalidateMode? autovalidateMode,
  36. bool isFontBigWeight = false,
})

Implementation

JuiFlatInput2({
  this.posKey,
  Key? key,
  this.textFieldKey,
  this.hintText,
  this.controller,
  this.color,
  this.inputColor = const Color(0xFF213A62),
  this.disabledColor,
  this.borderColor,
  this.disabledBorderColor = const Color(0xFFEEEEEE),
  this.errorColor = JuiColors.error,
  this.hintColor,
  this.fillColor = const Color(0x11333333),
  this.buttonColor,
  this.disabled,
  this.validator,
  this.keyboardType,
  this.maxLength,
  this.maxLengthEnforcement,
  this.inputFormatters,
  this.readOnly = false,
  this.label,
  this.iconButton,
  this.onChanged,
  this.focusNode,
  this.isPassword = false,
  this.initialValue,
  this.autofillHints,
  this.textInputAction,
  this.onFieldSubmitted,
  this.isLoading,
  this.isDarkBackground = false,
  this.onTap,
  this.isLabelSmall = false,
  this.autovalidateMode,
  this.isFontBigWeight = false,
})  : assert(isDarkBackground == false),
      super(key: key);