RistoTextField constructor

const RistoTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? title,
  4. String? hint,
  5. bool isSecret = false,
  6. TextInputType? keyboardType,
  7. String? validator(
    1. String?
    )?,
  8. void onChanged(
    1. String
    )?,
  9. void onSubmitted(
    1. String
    )?,
  10. FocusNode? focusNode,
  11. List<TextInputFormatter>? inputFormatters,
  12. EdgeInsetsGeometry? margin,
  13. double borderRadius = 12.0,
  14. Color? borderColor,
  15. Color? fillColor,
  16. Color? focusedBorderColor,
  17. Color? errorBorderColor,
  18. TextStyle? textStyle,
  19. TextStyle? titleStyle,
  20. TextStyle? hintStyle,
  21. TextStyle? errorStyle,
  22. Widget? innerLeading,
  23. Widget? innerTrailing,
  24. Widget? outerLeading,
  25. Widget? outerTrailing,
  26. double outerSpacing = 10.0,
  27. double? fieldHeight,
  28. EdgeInsetsGeometry? contentPadding,
  29. TextAlignVertical? textAlignVertical,
  30. int? maxLength,
  31. String? counterText,
  32. bool isDense = false,
  33. bool readOnly = false,
  34. TapRegionCallback? onTapOutside,
  35. bool horizontalLayout = false,
})

Implementation

const RistoTextField({
  super.key,
  this.controller,
  this.title,
  this.hint,
  this.isSecret = false,
  this.keyboardType,
  this.validator,
  this.onChanged,
  this.onSubmitted,
  this.focusNode,
  this.inputFormatters,
  this.margin,
  this.borderRadius = 12.0,
  this.borderColor,
  this.fillColor,
  this.focusedBorderColor,
  this.errorBorderColor,
  this.textStyle,
  this.titleStyle,
  this.hintStyle,
  this.errorStyle,
  this.innerLeading,
  this.innerTrailing,
  this.outerLeading,
  this.outerTrailing,
  this.outerSpacing = 10.0,
  this.fieldHeight,
  this.contentPadding,
  this.textAlignVertical,
  this.maxLength,
  this.counterText,
  this.isDense = false,
  this.readOnly = false,
  this.onTapOutside,
  this.horizontalLayout = false,
});