FlutstrapInput constructor

const FlutstrapInput({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? initialValue,
  4. FocusNode? focusNode,
  5. InputDecoration? decoration,
  6. TextInputType? keyboardType,
  7. TextCapitalization textCapitalization = TextCapitalization.none,
  8. TextInputAction? textInputAction,
  9. TextStyle? style,
  10. StrutStyle? strutStyle,
  11. TextDirection? textDirection,
  12. TextAlign textAlign = TextAlign.start,
  13. TextAlignVertical? textAlignVertical,
  14. bool autofocus = false,
  15. bool readOnly = false,
  16. bool? showCursor,
  17. String obscuringCharacter = '•',
  18. bool obscureText = false,
  19. bool autocorrect = true,
  20. SmartDashesType? smartDashesType,
  21. SmartQuotesType? smartQuotesType,
  22. bool enableSuggestions = true,
  23. int? maxLines = 1,
  24. int? minLines,
  25. bool expands = false,
  26. int? maxLength,
  27. MaxLengthEnforcement? maxLengthEnforcement,
  28. void onChanged(
    1. String
    )?,
  29. void onTap()?,
  30. void onEditingComplete()?,
  31. void onFieldSubmitted(
    1. String
    )?,
  32. void onSaved(
    1. String?
    )?,
  33. String? validator(
    1. String?
    )?,
  34. Iterable<String>? autofillHints,
  35. bool enabled = true,
  36. double cursorWidth = 2.0,
  37. double? cursorHeight,
  38. Radius? cursorRadius,
  39. Color? cursorColor,
  40. Brightness? keyboardAppearance,
  41. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  42. bool enableInteractiveSelection = true,
  43. TextSelectionControls? selectionControls,
  44. void onTapOutside(
    1. PointerDownEvent
    )?,
  45. InputCounterWidgetBuilder? buildCounter,
  46. ScrollPhysics? scrollPhysics,
  47. String? restorationId,
  48. bool enableIMEPersonalizedLearning = true,
  49. MouseCursor? mouseCursor,
  50. Widget? prefixIcon,
  51. String? prefixText,
  52. Widget? suffixIcon,
  53. String? suffixText,
  54. String? labelText,
  55. String? hintText,
  56. String? errorText,
  57. String? helperText,
  58. FSInputVariant variant = FSInputVariant.primary,
  59. FSInputSize size = FSInputSize.md,
  60. bool filled = false,
  61. Color? fillColor,
  62. String? semanticLabel,
  63. bool enableFeedback = true,
  64. Duration validationDelay = const Duration(milliseconds: 300),
})

Implementation

const FlutstrapInput({
  super.key,
  this.controller,
  this.initialValue,
  this.focusNode,
  this.decoration,
  this.keyboardType,
  this.textCapitalization = TextCapitalization.none,
  this.textInputAction,
  this.style,
  this.strutStyle,
  this.textDirection,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.autofocus = false,
  this.readOnly = false,
  this.showCursor,
  this.obscuringCharacter = '•',
  this.obscureText = false,
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableSuggestions = true,
  this.maxLines = 1,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.maxLengthEnforcement,
  this.onChanged,
  this.onTap,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.onSaved,
  this.validator,
  this.autofillHints,
  this.enabled = true,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.enableInteractiveSelection = true,
  this.selectionControls,
  this.onTapOutside,
  this.buildCounter,
  this.scrollPhysics,
  this.restorationId,
  this.enableIMEPersonalizedLearning = true,
  this.mouseCursor,
  this.prefixIcon,
  this.prefixText,
  this.suffixIcon,
  this.suffixText,
  this.labelText,
  this.hintText,
  this.errorText,
  this.helperText,
  this.variant = FSInputVariant.primary,
  this.size = FSInputSize.md,
  this.filled = false,
  this.fillColor,
  this.semanticLabel,
  this.enableFeedback = true,
  this.validationDelay = const Duration(milliseconds: 300),
});