MiniTextField constructor

const MiniTextField({
  1. Key? key,
  2. required TextEditingController controller,
  3. int maxLength = 20,
  4. bool autoFocus = false,
  5. TextInputType keyboardType = TextInputType.text,
  6. String hintText = '',
  7. FocusNode? focusNode,
  8. bool isInputPwd = false,
  9. Future<bool> getVCode()?,
  10. String? keyName,
  11. Widget? icon,
  12. EdgeInsetsGeometry? contentPadding,
  13. IconData pwdOff = Icons.visibility_off,
  14. IconData pwdOn = Icons.visibility,
  15. bool showLine = false,
  16. TextStyle? hintTextStyle,
  17. VoidCallback? onClear,
  18. InputBorder? focusedBorder,
  19. InputBorder? enabledBorder,
})

Implementation

const MiniTextField({
  Key? key,
  required this.controller,
  this.maxLength = 20,
  this.autoFocus = false,
  this.keyboardType = TextInputType.text,
  this.hintText = '',
  this.focusNode,
  this.isInputPwd = false,
  this.getVCode,
  this.keyName,
  this.icon,
  this.contentPadding,
  this.pwdOff = Icons.visibility_off,
  this.pwdOn = Icons.visibility,
  this.showLine = false,
  this.hintTextStyle,
  this.onClear,
  this.focusedBorder,
  this.enabledBorder,
}) : super(key: key);