NsgInput constructor

const NsgInput({
  1. Key? key,
  2. List<String>? countryCodes,
  3. String? countryCodeInitial,
  4. Widget? child,
  5. List dynamicList = const [],
  6. NsgSwitchHorizontalStyle nsgSwitchHorizontalStyle = const NsgSwitchHorizontalStyle(),
  7. Color? trackColor,
  8. NsgInputSelectionWidgetType selectionWidgetType = NsgInputSelectionWidgetType.column,
  9. Color? activeColor,
  10. Color? thumbColor,
  11. bool autofocus = false,
  12. DateTime? initialDateTime,
  13. DateTime? firstDateTime,
  14. DateTime? lastDateTime,
  15. KeyEventResult onKeyEvent(
    1. FocusNode focus,
    2. KeyEvent event
    )?,
  16. int? maxLenght,
  17. String validateText = '',
  18. TextAlign textAlign = TextAlign.left,
  19. required NsgDataItem dataItem,
  20. required String fieldName,
  21. bool showDeleteIcon = true,
  22. bool? showLabel,
  23. NsgDataController<NsgDataItem>? controller,
  24. NsgBaseController? selectionController,
  25. NsgDataController<NsgDataItem>? updateController,
  26. String label = '',
  27. Color? labelColor,
  28. List<String>? imagesList,
  29. bool disabled = false,
  30. double? fontSize,
  31. double borderRadius = 15,
  32. EdgeInsets? margin,
  33. bool? gesture,
  34. String? hint,
  35. dynamic onChanged(
    1. NsgDataItem
    )?,
  36. dynamic onFocusChanged(
    1. bool value
    )?,
  37. VoidCallback? onPressed,
  38. dynamic onEditingComplete(
    1. NsgDataItem,
    2. String
    )?,
  39. dynamic onFieldSubmitted(
    1. NsgDataItem,
    2. String
    )?,
  40. int maxLines = 1,
  41. int minLines = 1,
  42. Widget? widget,
  43. Widget rowWidget(
    1. NsgDataItem,
    2. bool
    )?,
  44. NsgInputType inputType = NsgInputType.autoselect,
  45. String selectionForm = '',
  46. TextInputType? keyboard = TextInputType.text,
  47. String? mask,
  48. NsgInputMaskType? maskType,
  49. List<NsgDataItem>? itemsToSelect,
  50. bool? required,
  51. TextFormFieldType? textFormFieldType,
  52. Color? borderColor,
  53. bool? filled,
  54. Color? filledColor,
  55. bool? isDense,
  56. Widget? labelWidget,
  57. bool showLock = true,
  58. FloatingLabelBehavior? floatingLabelBehavior = FloatingLabelBehavior.never,
  59. TextStyle? textStyle,
  60. Widget? boolWidget,
  61. BoolBoxPosition? boolBoxPosition = BoolBoxPosition.end,
  62. EdgeInsets? contentPadding,
  63. Widget? prefix,
  64. Widget? suffixIcon,
  65. String? formatDateTime,
  66. NsgDataRequestParams getRequestFilter()?,
  67. TextCapitalization textCapitalization = TextCapitalization.none,
  68. bool autocorrect = true,
})

Implementation

const NsgInput({
  super.key,
  this.countryCodes,
  this.countryCodeInitial,
  this.child,
  this.dynamicList = const [],
  this.nsgSwitchHorizontalStyle = const NsgSwitchHorizontalStyle(),
  this.trackColor,
  this.selectionWidgetType = NsgInputSelectionWidgetType.column,
  this.activeColor,
  this.thumbColor,
  this.autofocus = false,
  this.initialDateTime,
  this.firstDateTime,
  this.lastDateTime,
  this.onKeyEvent,
  this.maxLenght,
  this.validateText = '',
  this.textAlign = TextAlign.left,
  required this.dataItem,
  required this.fieldName,
  this.showDeleteIcon = true,
  this.showLabel,
  this.controller,
  this.selectionController,
  this.updateController,
  this.label = '',
  this.labelColor,
  this.imagesList,
  this.disabled = false,
  this.fontSize,
  this.borderRadius = 15,
  this.margin,
  this.gesture,
  this.hint,
  this.onChanged,
  this.onFocusChanged,
  this.onPressed,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.maxLines = 1,
  this.minLines = 1,
  //this.height = 50,
  this.widget,
  this.rowWidget,
  this.inputType = NsgInputType.autoselect,
  this.selectionForm = '',
  this.keyboard = TextInputType.text,
  this.mask,
  this.maskType,
  this.itemsToSelect,
  this.required,
  this.textFormFieldType,
  this.borderColor,
  this.filled,
  this.filledColor,
  this.isDense,
  this.labelWidget,
  this.showLock = true,
  this.floatingLabelBehavior = FloatingLabelBehavior.never,
  this.textStyle,
  this.boolWidget,
  this.boolBoxPosition = BoolBoxPosition.end,
  this.contentPadding,
  this.prefix,
  this.suffixIcon,
  this.formatDateTime,
  this.getRequestFilter,
  this.textCapitalization = TextCapitalization.none,
  this.autocorrect = true,
});