NyTextField.compact constructor

const NyTextField.compact({
  1. Key? key,
  2. bool? passwordVisible,
  3. String? labelText,
  4. required TextEditingController controller,
  5. bool obscureText = false,
  6. bool autoFocus = false,
  7. TextInputType keyboardType = TextInputType.text,
  8. TextAlign? textAlign,
  9. bool? validateOnFocusChange = false,
  10. int? maxLines = 1,
  11. dynamic handleValidationError(
    1. String handleError
    )?,
  12. int? minLines,
  13. bool enableSuggestions = true,
  14. String? hintText,
  15. TextStyle? hintStyle,
  16. FocusNode? focusNode,
  17. String? validationRules,
  18. String? dummyData,
  19. dynamic onChanged(
    1. String value
    )?,
  20. TextStyle? style,
  21. StrutStyle? strutStyle,
  22. TextInputAction? textInputAction,
  23. bool readOnly = false,
  24. bool? showCursor,
  25. int? maxLength,
  26. bool? enabled,
  27. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  28. double? cursorHeight,
  29. Radius? cursorRadius,
  30. Color? cursorColor,
  31. GestureTapCallback? onTap,
  32. TapRegionCallback? onTapOutside,
  33. String? validationErrorMessage,
  34. MouseCursor? mouseCursor,
  35. TextCapitalization textCapitalization = TextCapitalization.none,
  36. MaxLengthEnforcement? maxLengthEnforcement,
  37. double cursorWidth = 2.0,
  38. AppPrivateCommandCallback? onAppPrivateCommand,
  39. List<TextInputFormatter>? inputFormatters,
  40. bool expands = false,
  41. TextAlignVertical? textAlignVertical,
  42. TextDirection? textDirection,
  43. String obscuringCharacter = '•',
  44. bool autocorrect = true,
  45. SmartDashesType? smartDashesType,
  46. SmartQuotesType? smartQuotesType,
  47. InputDecoration? decoration,
  48. VoidCallback? onEditingComplete,
  49. Brightness? keyboardAppearance,
  50. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  51. TextSelectionControls? selectionControls,
  52. ValueChanged<String>? onSubmitted,
  53. ScrollController? scrollController,
  54. ScrollPhysics? scrollPhysics,
  55. Iterable<String>? autofillHints = const <String>[],
  56. Clip clipBehavior = Clip.hardEdge,
  57. Widget? prefixIcon,
  58. Color? backgroundColor,
  59. BorderRadius? borderRadius,
  60. InputBorder? border,
  61. InputBorder? focusedBorder,
  62. InputBorder? enabledBorder,
  63. EdgeInsetsGeometry? contentPadding,
  64. TextStyle? labelStyle,
  65. bool customValidationRule(
    1. dynamic value
    )?,
  66. Widget? header,
  67. Widget? footer,
  68. bool? clearable,
  69. Widget? clearIcon,
  70. String? mask,
  71. String? maskMatch,
  72. bool? maskedReturnValue,
  73. DecoratorTextField? decorator,
  74. String? type = 'compact',
})

Compact Text Field

Implementation

const NyTextField.compact({
  super.key,
  this.passwordVisible,
  this.labelText,
  required this.controller,
  this.obscureText = false,
  this.autoFocus = false,
  this.keyboardType = TextInputType.text,
  this.textAlign,
  this.validateOnFocusChange = false,
  this.maxLines = 1,
  this.handleValidationError,
  this.minLines,
  this.enableSuggestions = true,
  this.hintText,
  this.hintStyle,
  this.focusNode,
  this.validationRules,
  this.dummyData,
  this.onChanged,
  this.style,
  this.strutStyle,
  this.textInputAction,
  this.readOnly = false,
  this.showCursor,
  this.maxLength,
  this.enabled,
  this.dragStartBehavior = DragStartBehavior.start,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.onTap,
  this.onTapOutside,
  this.validationErrorMessage,
  this.mouseCursor,
  this.textCapitalization = TextCapitalization.none,
  this.maxLengthEnforcement,
  this.cursorWidth = 2.0,
  this.onAppPrivateCommand,
  this.inputFormatters,
  this.expands = false,
  this.textAlignVertical,
  this.textDirection,
  this.obscuringCharacter = '•',
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.decoration,
  this.onEditingComplete,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.selectionControls,
  this.onSubmitted,
  this.scrollController,
  this.scrollPhysics,
  this.autofillHints = const <String>[],
  this.clipBehavior = Clip.hardEdge,
  this.prefixIcon,
  this.backgroundColor,
  this.borderRadius,
  this.border,
  this.focusedBorder,
  this.enabledBorder,
  this.contentPadding,
  this.labelStyle,
  this.customValidationRule,
  this.header,
  this.footer,
  this.clearable,
  this.clearIcon,
  this.mask,
  this.maskMatch,
  this.maskedReturnValue,
  this.decorator,
  this.type = 'compact',
}) : passwordViewable = false;