RixaTextFieldFull constructor

const RixaTextFieldFull({
  1. Key? key,
  2. required TextEditingController controller,
  3. String hintText = "",
  4. String? labelText,
  5. int flex = 1,
  6. TextStyle? textStyle,
  7. TextStyle? labelStyle,
  8. bool expands = false,
  9. int maxLines = 1,
  10. TextStyle? titleStyle,
  11. TextStyle? hintStyle,
  12. double radius = 10,
  13. double? width,
  14. bool showCursor = false,
  15. double? borderWidth,
  16. Color? color,
  17. EdgeInsetsGeometry? innerPadding,
  18. Color? enabledColor,
  19. Color? focusedColor,
  20. TextStyle? errorStyle,
  21. bool autoFocus = false,
  22. Color? backgroundColor,
  23. bool error = false,
  24. int? minLines,
  25. bool isUnderline = true,
  26. bool noInputBorder = false,
  27. TextInputType textInputType = TextInputType.text,
  28. Widget? prefixIcon,
  29. EdgeInsetsGeometry? padding,
  30. String? errorText,
  31. double paddingLeft = 0,
})

Implementation

const RixaTextFieldFull({
  super.key,
  required this.controller,
  this.hintText = "",
  this.labelText,
  this.flex = 1,
  this.textStyle,
  this.labelStyle,
  this.expands = false,
  this.maxLines = 1,
  this.titleStyle,
  this.hintStyle,
  this.radius = 10,
  this.width,
  this.showCursor = false,
  this.borderWidth,
  this.color,
  this.innerPadding,
  this.enabledColor,
  this.focusedColor,
  TextStyle? errorStyle,
  this.autoFocus = false,
  this.backgroundColor,
  this.error = false,
  this.minLines,
  this.isUnderline = true,
  this.noInputBorder = false,
  this.textInputType = TextInputType.text,
  this.prefixIcon,
  this.padding,
  this.errorText,
  this.paddingLeft = 0,
}) : errorStyle = errorStyle ?? const TextStyle(color: Colors.red);