NsgTextFormField constructor

const NsgTextFormField({
  1. Key? key,
  2. FocusNode? focusNode,
  3. bool showLabel = true,
  4. String? label,
  5. bool required = false,
  6. TextEditingController? textController,
  7. Color? labelColor,
  8. void onEditingComplete(
    1. String text
    )?,
  9. void onChange(
    1. String text
    )?,
  10. void onFocusChanged(
    1. bool isFocused
    )?,
  11. KeyEventResult onKeyEvent(
    1. FocusNode focus,
    2. KeyEvent event
    )?,
  12. void onFieldSubmitted(
    1. String text
    )?,
  13. EdgeInsets? contentPadding,
  14. bool showDeleteIcon = true,
  15. String? defaultValue,
  16. TextFormFieldType? textFormFieldType,
  17. Color? borderColor,
  18. Color? filledColor,
  19. TextCapitalization textCapitalization = TextCapitalization.none,
  20. bool autocorrect = true,
  21. NsgInputMaskType? maskType,
  22. String? mask,
  23. bool autofocus = false,
  24. int maxLines = 1,
  25. int minLines = 1,
  26. Widget? suffixIcon,
  27. FloatingLabelBehavior? floatingLabelBehavior,
  28. bool? filled,
  29. bool? isDense,
  30. TextAlign textAlign = TextAlign.start,
  31. TextStyle? textStyle,
  32. Widget? labelWidget,
  33. String? hint,
  34. Widget? prefix,
  35. bool showLock = false,
  36. int? maxLength,
  37. TextInputType? keyboard,
  38. double? fontSize,
  39. bool disabled = false,
})

Implementation

const NsgTextFormField(
    {super.key,
    this.focusNode,
    this.showLabel = true,
    this.label,
    this.required = false,
    this.textController,
    this.labelColor,
    this.onEditingComplete,
    this.onChange,
    this.onFocusChanged,
    this.onKeyEvent,
    this.onFieldSubmitted,
    this.contentPadding,
    this.showDeleteIcon = true,
    this.defaultValue,
    this.textFormFieldType,
    this.borderColor,
    this.filledColor,
    this.textCapitalization = TextCapitalization.none,
    this.autocorrect = true,
    this.maskType,
    this.mask,
    this.autofocus = false,
    this.maxLines = 1,
    this.minLines = 1,
    this.suffixIcon,
    this.floatingLabelBehavior,
    this.filled,
    this.isDense,
    this.textAlign = TextAlign.start,
    this.textStyle,
    this.labelWidget,
    this.hint,
    this.prefix,
    this.showLock = false,
    this.maxLength,
    this.keyboard,
    this.fontSize,
    this.disabled = false});