NsgTextInput constructor

const NsgTextInput({
  1. Key? key,
  2. String? label,
  3. bool? disabled,
  4. double? fontSize = 16,
  5. EdgeInsets? margin = const EdgeInsets.fromLTRB(0, 10, 0, 5),
  6. bool? gesture,
  7. String? hint,
  8. String initial = '',
  9. double borderRadius = 15,
  10. VoidCallback? onPressed,
  11. dynamic onChanged(
    1. String
    )?,
  12. dynamic onChangedDelayed(
    1. String
    )?,
  13. int? maxlines,
  14. Widget? prefixIcon,
  15. TextAlign textAlign = TextAlign.left,
  16. 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 секунда
});