MiniTextField constructor
const
MiniTextField({
- Key? key,
- required TextEditingController controller,
- int maxLength = 20,
- bool autoFocus = false,
- TextInputType keyboardType = TextInputType.text,
- String hintText = '',
- FocusNode? focusNode,
- bool isInputPwd = false,
- Future<
bool> getVCode()?, - String? keyName,
- Widget? icon,
- EdgeInsetsGeometry? contentPadding,
- IconData pwdOff = Icons.visibility_off,
- IconData pwdOn = Icons.visibility,
- bool showLine = false,
- TextStyle? hintTextStyle,
- VoidCallback? onClear,
- InputBorder? focusedBorder,
- 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);