InputField.border constructor

const InputField.border({
  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.next,
  10. Color? normalColor,
  11. Color? focusColor = const Color(0xfff5f5f7),
  12. ValueChanged<String>? onSubmitted,
  13. TextEditingController? controller,
  14. String? hintText,
  15. TextStyle? style,
  16. TextStyle? hintStyle,
  17. FocusNode? focusNode,
  18. Widget? leftWidget,
  19. Widget? rightWidget,
  20. Color? backGroundColor,
  21. bool leftIconEnable = false,
  22. bool nonDecoration = true,
  23. TextInputType keyboardType = TextInputType.text,
  24. double? contentPadding,
  25. VoidCallback? onEditingComplete,
  26. List<TextInputFormatter>? inputFormatters,
  27. VoidCallback? cancelCallBack,
  28. int? maxLength,
  29. FocusScopeNode? scopeNode,
  30. String? exceedLimitTip,
  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. bool showClear = true,
  39. String? labelText,
  40. EdgeInsetsGeometry? lablePadding,
  41. Widget? replacement,
  42. InputBorder? inputBorder,
  43. InputBorder? enabledBorder,
  44. InputBorder? focusedBorder,
  45. bool autoFocus = false,
  46. bool onChangeDelay = false,
  47. int delayDuration = 1000,
})

Implementation

const InputField.border({
  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,
  //为空就会使用成默认的const UnderlineInputBorder(borderSide: BorderSide(color: Colors.white)),
  this.inputBorder,
  this.enabledBorder,
  this.focusedBorder,
  this.autoFocus = false,
  this.onChangeDelay = false,
  this.delayDuration = 1000,
}) : super(key: key);