build method

TextFormField build({
  1. Key? key,
})

Apply styles and build Text as Widget

Example usage:

NikuTextField("Label")
  .border(
    OutlineInputBorder(
      borderSide: BorderSide(
        width: 2
      )
    )
  )
  .focusedBorder(OutlineInputBorder(
    borderSide: BorderSide(
      color: Colors.blue,
      width: 2)
    )
  )
  .build()

Implementation

TextFormField build({Key? key}) => TextFormField(
      key: key,
      controller: this._controller,
      style: TextStyle(
        color: this._base_color,
        backgroundColor: this._base_backgroundColor,
        fontSize: this._base_fontSize,
        fontWeight: this._base_fontWeight,
        fontStyle: this._base_fontStyle,
        letterSpacing: this._base_letterSpacing,
        wordSpacing: this._base_wordSpacing,
        height: this._base_height,
        foreground: this._base_foreground,
        background: this._base_background,
        shadows: this._base_shadows,
        fontFeatures: this._base_fontFeatures,
        decoration: this._base_textDecoration,
        decorationColor: this._base_textDecorationColor,
        decorationThickness: this._base_textDecorationThickness,
        fontFamily: this._base_fontFamily,
        fontFamilyFallback: this._base_fontFamilyFallback,
        textBaseline: this._base_textBaseline,
      ),
      decoration: InputDecoration(
        icon: this._input_icon,
        labelText: this._input_labelText,
        helperText: this._input_helperText,
        helperMaxLines: this._input_helperMaxLines,
        hintText: this._input_hintText,
        hintMaxLines: this._input_hintMaxLines,
        errorText: this._input_errorText,
        errorMaxLines: this._input_errorMaxLines,
        floatingLabelBehavior: this._input_floatingLabelBehavior,
        isCollapsed: this._input_isCollapsed,
        isDense: this._input_isDense,
        contentPadding: this._input_contentPadding,
        prefixIcon: this._input_prefixIcon,
        prefixIconConstraints: this._input_prefixIconConstraints,
        prefix: this._input_prefix,
        prefixText: this._input_prefixText,
        suffixIcon: this._input_suffixIcon,
        suffix: this._input_suffix,
        suffixText: this._input_suffixText,
        suffixIconConstraints: this._input_suffixIconConstraints,
        counter: this._input_counter,
        counterText: this._input_counterText,
        filled: this._input_filled,
        fillColor: this._input_fillColor,
        focusColor: this._input_focusColor,
        hoverColor: this._input_hoverColor,
        errorBorder: this._input_errorBorder,
        focusedBorder: this._input_focusedBorder,
        focusedErrorBorder: this._input_focusedErrorBorder,
        disabledBorder: this._input_disabledBorder,
        enabledBorder: this._input_enabledBorder,
        border: this._input_border,
        enabled: this._input_decorationEnabled,
        semanticCounterText: this._input_semanticCounterText,
        alignLabelWithHint: this._input_alignLabelWithHint,
        hintStyle: TextStyle(
          color: this._hint_color,
          backgroundColor: this._hint_backgroundColor,
          fontSize: this._hint_fontSize,
          fontWeight: this._hint_fontWeight,
          fontStyle: this._hint_fontStyle,
          letterSpacing: this._hint_letterSpacing,
          wordSpacing: this._hint_wordSpacing,
          height: this._hint_height,
          foreground: this._hint_foreground,
          background: this._hint_background,
          shadows: this._hint_shadows,
          fontFeatures: this._hint_fontFeatures,
          decoration: this._hint_textDecoration,
          decorationColor: this._hint_textDecorationColor,
          decorationThickness: this._hint_textDecorationThickness,
          fontFamily: this._hint_fontFamily,
          fontFamilyFallback: this._hint_fontFamilyFallback,
          textBaseline: this._hint_textBaseline,
        ),
        errorStyle: TextStyle(
          color: this._error_color,
          backgroundColor: this._error_backgroundColor,
          fontSize: this._error_fontSize,
          fontWeight: this._error_fontWeight,
          fontStyle: this._error_fontStyle,
          letterSpacing: this._error_letterSpacing,
          wordSpacing: this._error_wordSpacing,
          height: this._error_height,
          foreground: this._error_foreground,
          background: this._error_background,
          shadows: this._error_shadows,
          fontFeatures: this._error_fontFeatures,
          decoration: this._error_textDecoration,
          decorationColor: this._error_textDecorationColor,
          decorationThickness: this._error_textDecorationThickness,
          fontFamily: this._error_fontFamily,
          fontFamilyFallback: this._error_fontFamilyFallback,
          textBaseline: this._error_textBaseline,
        ),
        prefixStyle: TextStyle(
          color: this._prefix_color,
          backgroundColor: this._prefix_backgroundColor,
          fontSize: this._prefix_fontSize,
          fontWeight: this._prefix_fontWeight,
          fontStyle: this._prefix_fontStyle,
          letterSpacing: this._prefix_letterSpacing,
          wordSpacing: this._prefix_wordSpacing,
          height: this._prefix_height,
          foreground: this._prefix_foreground,
          background: this._prefix_background,
          shadows: this._prefix_shadows,
          fontFeatures: this._prefix_fontFeatures,
          decoration: this._prefix_textDecoration,
          decorationColor: this._prefix_textDecorationColor,
          decorationThickness: this._prefix_textDecorationThickness,
          fontFamily: this._prefix_fontFamily,
          fontFamilyFallback: this._prefix_fontFamilyFallback,
          textBaseline: this._prefix_textBaseline,
        ),
        suffixStyle: TextStyle(
          color: this._suffix_color,
          backgroundColor: this._suffix_backgroundColor,
          fontSize: this._suffix_fontSize,
          fontWeight: this._suffix_fontWeight,
          fontStyle: this._suffix_fontStyle,
          letterSpacing: this._suffix_letterSpacing,
          wordSpacing: this._suffix_wordSpacing,
          height: this._suffix_height,
          foreground: this._suffix_foreground,
          background: this._suffix_background,
          shadows: this._suffix_shadows,
          fontFeatures: this._suffix_fontFeatures,
          decoration: this._suffix_textDecoration,
          decorationColor: this._suffix_textDecorationColor,
          decorationThickness: this._suffix_textDecorationThickness,
          fontFamily: this._suffix_fontFamily,
          fontFamilyFallback: this._suffix_fontFamilyFallback,
          textBaseline: this._suffix_textBaseline,
        ),
        counterStyle: TextStyle(
          color: this._counter_color,
          backgroundColor: this._counter_backgroundColor,
          fontSize: this._counter_fontSize,
          fontWeight: this._counter_fontWeight,
          fontStyle: this._counter_fontStyle,
          letterSpacing: this._counter_letterSpacing,
          wordSpacing: this._counter_wordSpacing,
          height: this._counter_height,
          foreground: this._counter_foreground,
          background: this._counter_background,
          shadows: this._counter_shadows,
          fontFeatures: this._counter_fontFeatures,
          decoration: this._counter_textDecoration,
          decorationColor: this._counter_textDecorationColor,
          decorationThickness: this._counter_textDecorationThickness,
          fontFamily: this._counter_fontFamily,
          fontFamilyFallback: this._counter_fontFamilyFallback,
          textBaseline: this._counter_textBaseline,
        ),
        labelStyle: TextStyle(
          color: this._label_color,
          backgroundColor: this._label_backgroundColor,
          fontSize: this._label_fontSize,
          fontWeight: this._label_fontWeight,
          fontStyle: this._label_fontStyle,
          letterSpacing: this._label_letterSpacing,
          wordSpacing: this._label_wordSpacing,
          height: this._label_height,
          foreground: this._label_foreground,
          background: this._label_background,
          shadows: this._label_shadows,
          fontFeatures: this._label_fontFeatures,
          decoration: this._label_textDecoration,
          decorationColor: this._label_textDecorationColor,
          decorationThickness: this._label_textDecorationThickness,
          fontFamily: this._label_fontFamily,
          fontFamilyFallback: this._label_fontFamilyFallback,
          textBaseline: this._label_textBaseline,
        ),
        helperStyle: TextStyle(
          color: this._helper_color,
          backgroundColor: this._helper_backgroundColor,
          fontSize: this._helper_fontSize,
          fontWeight: this._helper_fontWeight,
          fontStyle: this._helper_fontStyle,
          letterSpacing: this._helper_letterSpacing,
          wordSpacing: this._helper_wordSpacing,
          height: this._helper_height,
          foreground: this._helper_foreground,
          background: this._helper_background,
          shadows: this._helper_shadows,
          fontFeatures: this._helper_fontFeatures,
          decoration: this._helper_textDecoration,
          decorationColor: this._helper_textDecorationColor,
          decorationThickness: this._helper_textDecorationThickness,
          fontFamily: this._helper_fontFamily,
          fontFamilyFallback: this._helper_fontFamilyFallback,
          textBaseline: this._helper_textBaseline,
        ),
      ),
      initialValue: this._initialValue,
      focusNode: this._focusNode,
      keyboardType: this._keyboardType,
      textCapitalization: this._textCapitalization,
      textInputAction: this._textInputAction,
      textDirection: this._textDirection,
      textAlign: this._textAlign,
      textAlignVertical: this._textAlignVertical,
      autofocus: this._autofocus,
      readOnly: this._readOnly,
      toolbarOptions: this._toolbarOptions,
      showCursor: this._showCursor,
      obscuringCharacter: this._obscuringCharacter,
      obscureText: this._obscureText,
      autocorrect: this._autocorrect,
      smartDashesType: this._smartDashesType,
      smartQuotesType: this._smartQuotesType,
      enableSuggestions: this._enableSuggestions,
      // ignore: deprecated_member_use
      maxLengthEnforced: this._maxLengthEnforced,
      maxLines: this._maxLines,
      minLines: this._minLines,
      expands: this._expands,
      maxLength: this._maxLength,
      onChanged: this._onChanged,
      onTap: this._onTap,
      onEditingComplete: this._onEditingComplete,
      onFieldSubmitted: this._onFieldSubmitted,
      onSaved: this._onSaved,
      validator: this._validator,
      inputFormatters: this._inputFormatters,
      enabled: this._enabled,
      cursorWidth: this._cursorWidth,
      cursorHeight: this._cursorHeight,
      cursorRadius: this._cursorRadius,
      cursorColor: this._cursorColor,
      keyboardAppearance: this._keyboardAppearance,
      scrollPadding: this._scrollPadding,
      enableInteractiveSelection: this._enableInteractiveSelection,
      buildCounter: this._buildCounter,
      scrollPhysics: this._scrollPhysics,
      autofillHints: this._autofillHints,
      autovalidateMode: this._autovalidateMode,
    );