YmTextField constructor

YmTextField(
  1. List<TextInputFormatter> inputFormatters,
  2. String text,
  3. dynamic onTextChanged(
    1. String text
    ), {
  4. double fontSize = 30,
  5. double height = 30,
  6. String hintText = "",
  7. Color textColor = const Color(0xff666666),
  8. Color hintTextColor = const Color(0xff999999),
  9. int maxLines = 1,
  10. FocusNode? focusNode,
  11. TextAlign textAlign = TextAlign.left,
  12. OutlineInputBorder outlineInputBorder = const OutlineInputBorder(),
  13. 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()});