FlutstrapInput constructor
const
FlutstrapInput({
- Key? key,
- TextEditingController? controller,
- String? initialValue,
- FocusNode? focusNode,
- InputDecoration? decoration,
- TextInputType? keyboardType,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextInputAction? textInputAction,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- bool autofocus = false,
- bool readOnly = false,
- bool? showCursor,
- String obscuringCharacter = '•',
- bool obscureText = false,
- bool autocorrect = true,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool enableSuggestions = true,
- int? maxLines = 1,
- int? minLines,
- bool expands = false,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- void onChanged()?,
- void onTap()?,
- void onEditingComplete()?,
- void onFieldSubmitted()?,
- void onSaved()?,
- String? validator()?,
- Iterable<
String> ? autofillHints, - bool enabled = true,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- bool enableInteractiveSelection = true,
- TextSelectionControls? selectionControls,
- void onTapOutside()?,
- InputCounterWidgetBuilder? buildCounter,
- ScrollPhysics? scrollPhysics,
- String? restorationId,
- bool enableIMEPersonalizedLearning = true,
- MouseCursor? mouseCursor,
- Widget? prefixIcon,
- String? prefixText,
- Widget? suffixIcon,
- String? suffixText,
- String? labelText,
- String? hintText,
- String? errorText,
- String? helperText,
- FSInputVariant variant = FSInputVariant.primary,
- FSInputSize size = FSInputSize.md,
- bool filled = false,
- Color? fillColor,
- String? semanticLabel,
- bool enableFeedback = true,
- 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),
});