ChampionTextField constructor
ChampionTextField({
- required String id,
- TextField? fieldOverride,
- int? maxLines,
- String? textFieldTitle,
- String hintText = "",
- Widget? icon,
- Widget? leading,
- Widget? trailing,
- FormTheme? theme,
- String? title,
- String? description,
- int? maxLength,
- bool disabled = false,
- bool hideField = false,
- bool requestFocus = false,
- bool password = false,
- String? defaultValue,
- List<
FormBuilderValidator> ? validators, - bool validateLive = false,
- dynamic onSubmit(
- FormResults results
- dynamic onChange(
- FormResults results
- Future<
void> onDrop({- TextEditingController controller,
- required String fieldId,
- required String formId,
- bool draggable = true,
- Future<
void> onPaste({- TextEditingController controller,
- required String fieldId,
- required String formId,
- Widget fieldLayout(
- BuildContext context,
- FormFieldDef fieldDetails,
- FieldColorScheme currentColors,
- List<
FormBuilderError> errors, - Widget renderedField,
- Widget fieldBackground(
- BuildContext context,
- FormFieldDef fieldDetails,
- FieldColorScheme currentColors,
- Widget renderedField,
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,
});