AdaptiveTextField constructor

AdaptiveTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. InputDecoration decoration = const InputDecoration(),
  5. TextInputType? keyboardType,
  6. TextInputAction? textInputAction,
  7. TextCapitalization textCapitalization = TextCapitalization.none,
  8. TextStyle? style,
  9. StrutStyle? strutStyle,
  10. TextAlign textAlign = TextAlign.start,
  11. TextAlignVertical? textAlignVertical,
  12. TextDirection? textDirection,
  13. bool? showCursor,
  14. bool autofocus = false,
  15. bool obscureText = false,
  16. bool autocorrect = true,
  17. bool enableSuggestions = true,
  18. int? maxLines,
  19. int? minLines,
  20. bool expands = false,
  21. bool readOnly = false,
  22. ToolbarOptions? toolbarOptions,
  23. int? maxLength,
  24. ValueChanged<String>? onChanged,
  25. VoidCallback? onEditingComplete,
  26. ValueChanged<String>? onSubmitted,
  27. List<TextInputFormatter>? inputFormatters,
  28. MaxLengthEnforcement maxLengthEnforement = MaxLengthEnforcement.none,
  29. bool? enabled,
  30. double cursorWidth = 2.0,
  31. Radius cursorRadius = const Radius.circular(2.0),
  32. Color? cursorColor,
  33. Brightness? keyboardAppearance,
  34. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  35. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  36. bool enableInteractiveSelection = true,
  37. GestureTapCallback? onTap,
  38. InputCounterWidgetBuilder? buildCounter,
  39. ScrollPhysics? scrollPhysics,
  40. ScrollController? scrollController,
  41. BoxDecoration cupertinoDecoration = _kDefaultRoundedBorderDecoration,
  42. EdgeInsetsGeometry padding = const EdgeInsets.all(6.0),
  43. String? placeholder,
  44. TextStyle placeholderStyle = const TextStyle(fontWeight: FontWeight.w400, color: CupertinoColors.placeholderText),
  45. Widget? prefix,
  46. OverlayVisibilityMode prefixMode = OverlayVisibilityMode.always,
  47. Widget? suffix,
  48. OverlayVisibilityMode suffixMode = OverlayVisibilityMode.always,
  49. OverlayVisibilityMode clearButtonMode = OverlayVisibilityMode.never,
})

Implementation

AdaptiveTextField(
    {Key? key,
    this.controller,
    this.focusNode,
    this.decoration = const InputDecoration(),
    this.keyboardType,
    this.textInputAction,
    this.textCapitalization = TextCapitalization.none,
    this.style,
    this.strutStyle,
    this.textAlign = TextAlign.start,
    this.textAlignVertical,
    this.textDirection,
    this.showCursor,
    this.autofocus = false,
    this.obscureText = false,
    this.autocorrect = true,
    this.enableSuggestions = true,
    this.maxLines,
    this.minLines,
    this.expands = false,
    this.readOnly = false,
    this.toolbarOptions,
    this.maxLength,
    this.onChanged,
    this.onEditingComplete,
    this.onSubmitted,
    this.inputFormatters,
    this.maxLengthEnforement = MaxLengthEnforcement.none,
    this.enabled,
    this.cursorWidth = 2.0,
    this.cursorRadius = const Radius.circular(2.0),
    this.cursorColor,
    this.keyboardAppearance,
    this.scrollPadding = const EdgeInsets.all(20.0),
    this.dragStartBehavior = DragStartBehavior.start,
    this.enableInteractiveSelection = true,
    this.onTap,
    this.buildCounter,
    this.scrollPhysics,
    this.scrollController,
    this.cupertinoDecoration = _kDefaultRoundedBorderDecoration,
    this.padding = const EdgeInsets.all(6.0),
    this.placeholder,
    this.placeholderStyle = const TextStyle(
      fontWeight: FontWeight.w400,
      color: CupertinoColors.placeholderText,
    ),
    this.prefix,
    this.prefixMode = OverlayVisibilityMode.always,
    this.suffix,
    this.suffixMode = OverlayVisibilityMode.always,
    this.clearButtonMode = OverlayVisibilityMode.never})
    : super(key: key);