NsgTextInput constructor
const
NsgTextInput({
- Key? key,
- String? label,
- bool? disabled,
- double? fontSize = 16,
- EdgeInsets? margin = const EdgeInsets.fromLTRB(0, 10, 0, 5),
- bool? gesture,
- String? hint,
- String initial = '',
- double borderRadius = 15,
- VoidCallback? onPressed,
- dynamic onChanged()?,
- dynamic onChangedDelayed()?,
- int? maxlines,
- Widget? prefixIcon,
- TextAlign textAlign = TextAlign.left,
- Duration onChangeDelay = const Duration(seconds: 1),
NsgTextInput
Implementation
const NsgTextInput({
super.key,
this.label,
this.disabled,
this.fontSize = 16,
this.margin = const EdgeInsets.fromLTRB(0, 10, 0, 5),
this.gesture,
this.hint,
this.initial = '',
this.borderRadius = 15,
this.onPressed,
this.onChanged,
this.onChangedDelayed,
this.maxlines,
this.prefixIcon,
this.textAlign = TextAlign.left,
this.onChangeDelay = const Duration(seconds: 1), // По умолчанию 1 секунда
});