NkTextField constructor
const
NkTextField({
- int maxLines = 1,
- bool isPassword = false,
- Color bgColor = Colors.transparent,
- Color focusColor = Colors.black87,
- Color textColor = Colors.black87,
- Color underlineColor = Colors.black87,
- Color customBgColor = Colors.transparent,
- double underlineOpacity = 1,
- Color? cursorColor,
- Icon? leftItem,
- Icon? rightItem,
- String hintText = "Hint",
- TextStyle style = defaultStyle,
- TextInputType? keyboardType,
- String validationFunction()?,
- dynamic onChanged()?,
- EdgeInsetsGeometry? contentPadding,
- TextEditingController? value,
- List<
TextInputFormatter> ? inputFormatter, - Widget background()?,
- bool autoFocus = false,
Implementation
const NkTextField(
{this.maxLines = 1,
this.isPassword = false,
this.bgColor = Colors.transparent,
this.focusColor = Colors.black87,
this.textColor = Colors.black87,
this.underlineColor = Colors.black87,
this.customBgColor = Colors.transparent,
this.underlineOpacity = 1,
this.cursorColor,
this.leftItem,
this.rightItem,
this.hintText = "Hint",
this.style = defaultStyle,
this.keyboardType,
this.validationFunction,
this.onChanged,
this.contentPadding,
this.value,
this.inputFormatter,
this.background,
this.autoFocus = false});