build method

  1. @override
Widget build(
  1. BuildContext context,
  2. AdaptiveTextInput component
)
override

Implementation

@override
Widget build(BuildContext context, AdaptiveTextInput component) {
  return MacosTextField(
    placeholder: component.placeholder,
    controller: component.controller,
    onChanged: component.onChanged,
    // groupId = EditableText,
    // controller,
    focusNode: component.focusNode,
    // undoController,
    keyboardType: component.keyboardType,
    textInputAction: component.textInputAction,
    textCapitalization: component.textCapitalization,
    style: component.style,
    strutStyle: component.strutStyle,
    textAlign: component.textAlign,
    textAlignVertical: component.textAlignVertical,
    // textDirection,
    readOnly: component.readOnly,
    // @Deprecated(
    //   'Use `contextMenuBuilder` instead. '
    //   'This feature was deprecated after v3.3.0-0.5.pre.',
    // )
    // toolbarOptions,
    showCursor: component.showCursor,
    autofocus: component.autofocus,
    // statesController,
    obscuringCharacter: component.obscuringCharacter,
    obscureText: component.obscureText,
    autocorrect: component.autocorrect,
    smartDashesType: component.smartDashesType,
    smartQuotesType: component.smartQuotesType,
    enableSuggestions: component.enableSuggestions,
    maxLines: component.maxLines,
    minLines: component.minLines,
    expands: component.expands,
    maxLength: component.maxLength,
    maxLengthEnforcement: component.maxLengthEnforcement,
    onEditingComplete: component.onEditingComplete,
    onSubmitted: component.onSubmitted,
    // onAppPrivateCommand,
    inputFormatters: component.inputFormatters,
    enabled: component.enabled,
    // ignorePointers,
    cursorWidth: component.cursorWidth,
    cursorHeight: component.cursorHeight,
    cursorRadius: component.cursorRadius ?? const Radius.circular(2.0),
    // cursorOpacityAnimates,
    cursorColor: component.cursorColor,
    // cursorErrorColor,
    selectionHeightStyle: component.selectionHeightStyle,
    selectionWidthStyle: component.selectionWidthStyle,
    keyboardAppearance: component.keyboardAppearance,
    scrollPadding: component.scrollPadding,
    dragStartBehavior: component.dragStartBehavior,
    enableInteractiveSelection: component.enableInteractiveSelection,
    selectionControls: component.selectionControls,
    onTap: component.onTap,
    // onTapAlwaysCalled = false,
    // onTapOutside,
    // mouseCursor,
    // buildCounter,
    scrollController: component.scrollController,
    scrollPhysics: component.scrollPhysics,
    autofillHints: component.autofillHints,
    // contentInsertionConfiguration,
    // clipBehavior = Clip.hardEdge,
    restorationId: component.restorationId,
    // scribbleEnabled = true,
    // enableIMEPersonalizedLearning = true,
    contextMenuBuilder: component.contextMenuBuilder,
    // canRequestFocus = true,
    // spellCheckConfiguration,
    // magnifierConfiguration,
  );
}