InputField.noneDecoration constructor
const
InputField.noneDecoration({
- Key? key,
- String? text,
- bool obscureText = false,
- Decoration? decoration,
- Decoration? focusDecoration,
- int? maxLines = 1,
- double height = 48,
- double? width,
- TextInputAction textInputAction = TextInputAction.next,
- Color? normalColor,
- Color? focusColor = const Color(0xfff5f5f7),
- ValueChanged<
String> ? onSubmitted, - TextEditingController? controller,
- String? hintText,
- TextStyle? style,
- TextStyle? hintStyle,
- FocusNode? focusNode,
- Widget? leftWidget,
- Widget? rightWidget,
- Color? backGroundColor,
- bool leftIconEnable = false,
- bool nonDecoration = true,
- TextInputType keyboardType = TextInputType.text,
- double? contentPadding,
- VoidCallback? onEditingComplete,
- List<
TextInputFormatter> ? inputFormatters, - VoidCallback? cancelCallBack,
- int? maxLength,
- FocusScopeNode? scopeNode,
- String? exceedLimitTip,
- bool enable = true,
- Color? cursorColor,
- EdgeInsetsGeometry? padding,
- bool? readOnly = false,
- ValueChanged<
String> ? onChanged, - TextAlign textAlign = TextAlign.start,
- Widget? clearWidget,
- bool showClear = true,
- String? labelText,
- EdgeInsetsGeometry? lablePadding,
- Widget? replacement,
- bool onChangeDelay = false,
- int delayDuration = 1000,
- bool autoFocus = false,
- InputBorder? inputBorder = const OutlineInputBorder(borderSide: BorderSide.none),
- InputBorder? enabledBorder = const OutlineInputBorder(borderSide: BorderSide.none),
- InputBorder? focusedBorder = const OutlineInputBorder(borderSide: BorderSide.none),
Implementation
const InputField.noneDecoration({
Key? key,
this.text,
this.obscureText = false,
this.decoration,
this.focusDecoration,
this.maxLines = 1,
this.height = 48,
this.width,
this.textInputAction = TextInputAction.next,
this.normalColor,
this.focusColor = const Color(0xfff5f5f7),
this.onSubmitted,
this.controller,
this.hintText,
this.style,
this.hintStyle,
this.focusNode,
this.leftWidget,
this.rightWidget,
this.backGroundColor,
this.leftIconEnable = false,
this.nonDecoration = true,
this.keyboardType = TextInputType.text,
this.contentPadding,
this.onEditingComplete,
this.inputFormatters,
this.cancelCallBack,
this.maxLength,
this.scopeNode,
this.exceedLimitTip,
this.enable = true,
this.cursorColor,
this.padding,
this.readOnly = false,
this.onChanged,
this.textAlign = TextAlign.start,
this.clearWidget,
this.showClear = true,
this.labelText,
this.lablePadding,
this.replacement,
this.onChangeDelay = false,
this.delayDuration = 1000,
this.autoFocus = false,
this.inputBorder = const OutlineInputBorder(borderSide: BorderSide.none),
this.enabledBorder = const OutlineInputBorder(borderSide: BorderSide.none),
this.focusedBorder = const OutlineInputBorder(borderSide: BorderSide.none),
}) : super(key: key);