BsInput constructor

const BsInput({
  1. Key? key,
  2. BsInputStyle style = BsInputStyle.outline,
  3. BsInputSize size = BsInputSize.md,
  4. String? hintText,
  5. String? hintTextLabel,
  6. FocusNode? focusNode,
  7. double? width,
  8. bool disabled = false,
  9. bool readOnly = false,
  10. int? minLines = 1,
  11. int? maxLines = 1,
  12. required TextEditingController controller,
  13. bool obscureText = false,
  14. bool autofocus = false,
  15. bool autocorrect = false,
  16. TextInputType? keyboardType,
  17. List<TextInputFormatter>? inputFormatters,
  18. TextAlign textAlign = TextAlign.start,
  19. TextAlignVertical? textAlignVertical,
  20. TextCapitalization textCapitalization = TextCapitalization.none,
  21. TextDirection? textDirection,
  22. TextInputAction? textInputAction,
  23. GestureTapCallback? onTap,
  24. VoidCallback? onEditingComplete,
  25. ValueChanged<String>? onChange,
  26. FormFieldSetter<String>? onFieldSubmitted,
  27. FormFieldSetter<String>? onSaved,
  28. bool? showCursor,
  29. Color? cursorColor,
  30. double? cursorHeight,
  31. double cursorWidth = 2.0,
  32. Radius? cursorRadius,
  33. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  34. ScrollController? scrollController,
  35. ScrollPhysics? scrollPhysics,
  36. List<BsInputValidator> validators = const [],
  37. ToolbarOptions? toolbarOptions,
  38. IconData? prefixIcon,
  39. IconData? suffixIcon,
  40. VoidCallback? onTapPrefixIcon,
  41. VoidCallback? onTapSuffixIcon,
})

Construct BsInput

Implementation

const BsInput({
  Key? key,
  this.style = BsInputStyle.outline,
  this.size = BsInputSize.md,
  this.hintText,
  this.hintTextLabel,
  this.focusNode,
  this.width,
  this.disabled = false,
  this.readOnly = false,
  this.minLines = 1,
  this.maxLines = 1,
  required this.controller,
  this.obscureText = false,
  this.autofocus = false,
  this.autocorrect = false,
  this.keyboardType,
  this.inputFormatters,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.textCapitalization = TextCapitalization.none,
  this.textDirection,
  this.textInputAction,
  this.onTap,
  this.onEditingComplete,
  this.onChange,
  this.onFieldSubmitted,
  this.onSaved,
  this.showCursor,
  this.cursorColor,
  this.cursorHeight,
  this.cursorWidth = 2.0,
  this.cursorRadius,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.scrollController,
  this.scrollPhysics,
  this.validators = const [],
  this.toolbarOptions,
  this.prefixIcon,
  this.suffixIcon,
  this.onTapPrefixIcon,
  this.onTapSuffixIcon,
}) : super(key: key);