InputField constructor

const InputField({
  1. Key? key,
  2. String? text,
  3. bool obscureText = false,
  4. Decoration? decoration,
  5. Decoration? focusDecoration,
  6. int? maxLines = 1,
  7. double height = 48,
  8. double? width,
  9. TextInputAction textInputAction = TextInputAction.done,
  10. Color? normalColor,
  11. Color? focusColor,
  12. ValueChanged<String>? onSubmitted,
  13. TextEditingController? controller,
  14. String? hintText,
  15. FocusNode? focusNode,
  16. TextStyle? style,
  17. TextStyle? hintStyle,
  18. bool leftIconEnable = false,
  19. Widget? leftWidget,
  20. Widget? rightWidget,
  21. Color? backGroundColor,
  22. bool nonDecoration = false,
  23. double? contentPadding,
  24. List<TextInputFormatter>? inputFormatters,
  25. VoidCallback? onEditingComplete,
  26. VoidCallback? cancelCallBack,
  27. FocusScopeNode? scopeNode,
  28. int? maxLength,
  29. String? exceedLimitTip,
  30. TextInputType keyboardType = TextInputType.text,
  31. bool enable = true,
  32. Color? cursorColor,
  33. EdgeInsetsGeometry? padding,
  34. bool? readOnly = false,
  35. ValueChanged<String>? onChanged,
  36. TextAlign textAlign = TextAlign.start,
  37. Widget? clearWidget,
  38. String? labelText,
  39. EdgeInsetsGeometry? lablePadding,
  40. Widget? replacement,
  41. bool showClear = true,
  42. bool onChangeDelay = false,
  43. int delayDuration = 1000,
  44. bool autoFocus = false,
  45. InputBorder? inputBorder = const OutlineInputBorder(borderSide: BorderSide.none),
  46. InputBorder? enabledBorder = const OutlineInputBorder(borderSide: BorderSide.none),
  47. InputBorder? focusedBorder = const OutlineInputBorder(borderSide: BorderSide.none),
})

Implementation

const InputField({
  Key? key,
  this.text,
  this.obscureText = false,
  this.decoration,
  this.focusDecoration,
  this.maxLines = 1,
  this.height = 48,
  this.width,
  this.textInputAction = TextInputAction.done,
  this.normalColor,
  this.focusColor,
  this.onSubmitted,
  this.controller,
  this.hintText,
  this.focusNode,
  this.style,
  this.hintStyle,
  this.leftIconEnable = false,
  this.leftWidget,
  this.rightWidget,
  this.backGroundColor,
  this.nonDecoration = false,
  this.contentPadding,
  this.inputFormatters,
  this.onEditingComplete,
  this.cancelCallBack,
  this.scopeNode,
  this.maxLength,
  this.exceedLimitTip,
  this.keyboardType = TextInputType.text,
  this.enable = true,
  this.cursorColor,
  this.padding,
  this.readOnly = false,
  this.onChanged,
  this.textAlign = TextAlign.start,
  this.clearWidget,
  this.labelText,
  this.lablePadding,
  this.replacement,
  this.showClear = true,
  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);