BsInput constructor
const
BsInput({
- Key? key,
- BsInputStyle style = BsInputStyle.outline,
- BsInputSize size = BsInputSize.md,
- String? hintText,
- String? hintTextLabel,
- FocusNode? focusNode,
- double? width,
- bool disabled = false,
- bool readOnly = false,
- int? minLines = 1,
- int? maxLines = 1,
- required TextEditingController controller,
- bool obscureText = false,
- bool autofocus = false,
- bool autocorrect = false,
- TextInputType? keyboardType,
- List<
TextInputFormatter> ? inputFormatters, - TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextDirection? textDirection,
- TextInputAction? textInputAction,
- GestureTapCallback? onTap,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onChange, - FormFieldSetter<
String> ? onFieldSubmitted, - FormFieldSetter<
String> ? onSaved, - bool? showCursor,
- Color? cursorColor,
- double? cursorHeight,
- double cursorWidth = 2.0,
- Radius? cursorRadius,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- List<
BsInputValidator> validators = const [], - ToolbarOptions? toolbarOptions,
- IconData? prefixIcon,
- IconData? suffixIcon,
- VoidCallback? onTapPrefixIcon,
- 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);