NkTextField constructor

const NkTextField({
  1. int maxLines = 1,
  2. bool isPassword = false,
  3. Color bgColor = Colors.transparent,
  4. Color focusColor = Colors.black87,
  5. Color textColor = Colors.black87,
  6. Color underlineColor = Colors.black87,
  7. Color customBgColor = Colors.transparent,
  8. double underlineOpacity = 1,
  9. Color? cursorColor,
  10. Icon? leftItem,
  11. Icon? rightItem,
  12. String hintText = "Hint",
  13. TextStyle style = defaultStyle,
  14. TextInputType? keyboardType,
  15. String validationFunction(
    1. String?
    )?,
  16. dynamic onChanged(
    1. String
    )?,
  17. EdgeInsetsGeometry? contentPadding,
  18. TextEditingController? value,
  19. List<TextInputFormatter>? inputFormatter,
  20. Widget background(
    1. NkTextFieldBGSets
    )?,
  21. 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});