OptimusInputField constructor

const OptimusInputField({
  1. Key? key,
  2. ValueChanged<String>? onChanged,
  3. String? placeholder,
  4. TextStyle? placeholderStyle,
  5. TextInputType? keyboardType,
  6. bool isPasswordField = false,
  7. bool isEnabled = true,
  8. TextInputAction? textInputAction,
  9. ValueChanged<String>? onSubmitted,
  10. FocusNode? focusNode,
  11. String? label,
  12. Widget? caption,
  13. IconData? captionIcon = OptimusIcons.info,
  14. Widget? helperMessage,
  15. int maxLines = 1,
  16. int? minLines,
  17. TextEditingController? controller,
  18. String? error,
  19. OptimusInputErrorVariant errorVariant = OptimusInputErrorVariant.bottomHint,
  20. bool enableInteractiveSelection = true,
  21. bool autofocus = false,
  22. bool autocorrect = true,
  23. bool hasBorders = true,
  24. bool isRequired = false,
  25. bool? isFocused,
  26. bool isClearEnabled = false,
  27. Widget? suffix,
  28. Widget? prefix,
  29. Widget? leading,
  30. Widget? trailing,
  31. Key? inputKey,
  32. Key? fieldBoxKey,
  33. bool readOnly = false,
  34. VoidCallback? onTap,
  35. TextAlign textAlign = TextAlign.start,
  36. TextCapitalization textCapitalization = TextCapitalization.none,
  37. OptimusWidgetSize size = OptimusWidgetSize.large,
  38. bool? showCursor,
  39. bool showLoader = false,
  40. List<TextInputFormatter>? inputFormatters,
  41. Brightness? keyboardAppearance,
  42. bool enableIMEPersonalizedLearning = true,
  43. bool enableSuggestions = true,
})

Implementation

const OptimusInputField({
  super.key,
  this.onChanged,
  this.placeholder,
  this.placeholderStyle,
  this.keyboardType,
  this.isPasswordField = false,
  this.isEnabled = true,
  this.textInputAction,
  this.onSubmitted,
  this.focusNode,
  this.label,
  this.caption,
  this.captionIcon = OptimusIcons.info,
  this.helperMessage,
  this.maxLines = 1,
  this.minLines,
  this.controller,
  this.error,
  this.errorVariant = OptimusInputErrorVariant.bottomHint,
  this.enableInteractiveSelection = true,
  this.autofocus = false,
  this.autocorrect = true,
  this.hasBorders = true,
  this.isRequired = false,
  this.isFocused,
  this.isClearEnabled = false,
  this.suffix,
  this.prefix,
  this.leading,
  this.trailing,
  this.inputKey,
  this.fieldBoxKey,
  this.readOnly = false,
  this.onTap,
  this.textAlign = TextAlign.start,
  this.textCapitalization = TextCapitalization.none,
  this.size = OptimusWidgetSize.large,
  this.showCursor,
  this.showLoader = false,
  this.inputFormatters,
  this.keyboardAppearance,
  this.enableIMEPersonalizedLearning = true,
  this.enableSuggestions = true,
});