ChampionTextField constructor

ChampionTextField({
  1. required String id,
  2. TextField? fieldOverride,
  3. int? maxLines,
  4. String? textFieldTitle,
  5. String hintText = "",
  6. Widget? icon,
  7. Widget? leading,
  8. Widget? trailing,
  9. FormTheme? theme,
  10. String? title,
  11. String? description,
  12. int? maxLength,
  13. bool disabled = false,
  14. bool hideField = false,
  15. bool requestFocus = false,
  16. bool password = false,
  17. String? defaultValue,
  18. List<FormBuilderValidator>? validators,
  19. bool validateLive = false,
  20. dynamic onSubmit(
    1. FormResults results
    )?,
  21. dynamic onChange(
    1. FormResults results
    )?,
  22. Future<void> onDrop({
    1. TextEditingController controller,
    2. required String fieldId,
    3. required String formId,
    })?,
  23. bool draggable = true,
  24. Future<void> onPaste({
    1. TextEditingController controller,
    2. required String fieldId,
    3. required String formId,
    })?,
  25. Widget fieldLayout(
    1. BuildContext context,
    2. FormFieldDef fieldDetails,
    3. FieldColorScheme currentColors,
    4. List<FormBuilderError> errors,
    5. Widget renderedField,
    ) = fieldSimpleLayout,
  26. Widget fieldBackground(
    1. BuildContext context,
    2. FormFieldDef fieldDetails,
    3. FieldColorScheme currentColors,
    4. Widget renderedField,
    ) = fieldSimpleBackground,
})

Implementation

ChampionTextField({
  required super.id,
  this.fieldOverride,
  this.maxLines,
  this.textFieldTitle,
  this.hintText = "",
  super.icon,
  this.leading,
  this.trailing,
  super.theme,
  super.title,
  super.description,
  this.maxLength,
  super.disabled,
  super.hideField,
  super.requestFocus,
  this.password = false,
  this.defaultValue,
  super.validators,
  super.validateLive,
  super.onSubmit,
  super.onChange,
  this.onDrop,
  this.draggable = true,
  this.onPaste,
  super.fieldLayout,
  super.fieldBackground,
});