NsgTextFormField constructor
const
NsgTextFormField({
- Key? key,
- FocusNode? focusNode,
- bool showLabel = true,
- String? label,
- bool required = false,
- TextEditingController? textController,
- Color? labelColor,
- void onEditingComplete(
- String text
- void onChange(
- String text
- void onFocusChanged(
- bool isFocused
- KeyEventResult onKeyEvent()?,
- void onFieldSubmitted(
- String text
- EdgeInsets? contentPadding,
- bool showDeleteIcon = true,
- String? defaultValue,
- TextFormFieldType? textFormFieldType,
- Color? borderColor,
- Color? filledColor,
- TextCapitalization textCapitalization = TextCapitalization.none,
- bool autocorrect = true,
- NsgInputMaskType? maskType,
- String? mask,
- bool autofocus = false,
- int maxLines = 1,
- int minLines = 1,
- Widget? suffixIcon,
- FloatingLabelBehavior? floatingLabelBehavior,
- bool? filled,
- bool? isDense,
- TextAlign textAlign = TextAlign.start,
- TextStyle? textStyle,
- Widget? labelWidget,
- String? hint,
- Widget? prefix,
- bool showLock = false,
- int? maxLength,
- TextInputType? keyboard,
- double? fontSize,
- 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});