YmTextField constructor
YmTextField(
- List<
TextInputFormatter> inputFormatters, - String text,
- dynamic onTextChanged(
- String text
- double fontSize = 30,
- double height = 30,
- String hintText = "",
- Color textColor = const Color(0xff666666),
- Color hintTextColor = const Color(0xff999999),
- int maxLines = 1,
- FocusNode? focusNode,
- TextAlign textAlign = TextAlign.left,
- OutlineInputBorder outlineInputBorder = const OutlineInputBorder(),
- OutlineInputBorder focusedBorder = const OutlineInputBorder(),
[FilteringTextInputFormatter.digitsOnly,FilteringTextInputFormatter.allow(RegExp("0-9.
")]
Implementation
YmTextField(this.inputFormatters, this.text, this.onTextChanged,
{this.fontSize = 30,
this.height = 30,
this.hintText = "",
this.textColor = const Color(0xff666666),
this.hintTextColor = const Color(0xff999999),
this.maxLines = 1,
this.focusNode,
this.textAlign = TextAlign.left,
this.outlineInputBorder = const OutlineInputBorder(),
this.focusedBorder = const OutlineInputBorder()});