CTextFormField constructor
const
CTextFormField({
- Key? key,
- required ObservableValue<
CTextFormFieldControl> observable, - InputDecoration decoration = const InputDecoration(),
- FormFieldValidator<
String> ? validator, - CObscureTextButtonConfiguration obscureTextButtonConfiguration = const CObscureTextButtonConfiguration.none(),
- ValueChanged<
String> ? onChanged, - TextAlign textAlign = TextAlign.start,
- AutovalidateMode? autovalidateMode,
- FocusNode? focusNode,
- GestureTapCallback? onTap,
- ValueChanged<
String> ? onFieldSubmitted, - TextInputAction? textInputAction,
- List<
TextInputFormatter> ? inputFormatters, - TextInputType? keyboardType,
- TextStyle? style,
- int? minLines,
- int? maxLength,
- int maxLines = 1,
- bool expands = false,
- bool autofocus = false,
- bool readOnly = false,
- bool autocorrect = true,
- bool enableSuggestions = true,
- bool? showCursor,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- TextAlignVertical? textAlignVertical,
- bool enableInteractiveSelection = true,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- TextCapitalization textCapitalization = TextCapitalization.none,
- Iterable<
String> ? autofillHints, - Brightness? keyboardAppearance,
- InputCounterWidgetBuilder? buildCounter,
- ScrollPhysics? scrollPhysics,
- String obscuringCharacter = '•',
- VoidCallback? onEditingComplete,
- FormFieldSetter<
String> ? onSaved, - ToolbarOptions? toolbarOptions,
- ValueChanged<
bool> ? onChangedObscuteText, - TextEditingController? controller,
Implementation
const CTextFormField({
Key? key,
required this.observable,
this.decoration = const InputDecoration(),
this.validator,
this.obscureTextButtonConfiguration =
const CObscureTextButtonConfiguration.none(),
this.onChanged,
this.textAlign = TextAlign.start,
this.autovalidateMode,
this.focusNode,
this.onTap,
this.onFieldSubmitted,
this.textInputAction,
this.inputFormatters,
this.keyboardType,
this.style,
this.minLines,
this.maxLength,
this.maxLines = 1,
this.expands = false,
this.autofocus = false,
this.readOnly = false,
this.autocorrect = true,
this.enableSuggestions = true,
this.showCursor,
this.cursorWidth = 2.0,
this.cursorHeight,
this.cursorRadius,
this.cursorColor,
this.strutStyle,
this.textDirection,
this.textAlignVertical,
this.enableInteractiveSelection = true,
this.scrollPadding = const EdgeInsets.all(20.0),
this.textCapitalization = TextCapitalization.none,
this.autofillHints,
this.keyboardAppearance,
this.buildCounter,
this.scrollPhysics,
this.obscuringCharacter = '•',
this.onEditingComplete,
this.onSaved,
this.toolbarOptions,
this.onChangedObscuteText,
this.controller,
}) : super(key: key);