NsgInput constructor
const
NsgInput({
- Key? key,
- List<
String> ? countryCodes, - String? countryCodeInitial,
- Widget? child,
- List dynamicList = const [],
- NsgSwitchHorizontalStyle nsgSwitchHorizontalStyle = const NsgSwitchHorizontalStyle(),
- Color? trackColor,
- NsgInputSelectionWidgetType selectionWidgetType = NsgInputSelectionWidgetType.column,
- Color? activeColor,
- Color? thumbColor,
- bool autofocus = false,
- DateTime? initialDateTime,
- DateTime? firstDateTime,
- DateTime? lastDateTime,
- KeyEventResult onKeyEvent()?,
- int? maxLenght,
- String validateText = '',
- TextAlign textAlign = TextAlign.left,
- required NsgDataItem dataItem,
- required String fieldName,
- bool showDeleteIcon = true,
- bool? showLabel,
- NsgDataController<
NsgDataItem> ? controller, - NsgBaseController? selectionController,
- NsgDataController<
NsgDataItem> ? updateController, - String label = '',
- Color? labelColor,
- List<
String> ? imagesList, - bool disabled = false,
- double? fontSize,
- double borderRadius = 15,
- EdgeInsets? margin,
- bool? gesture,
- String? hint,
- dynamic onChanged(
- NsgDataItem
- dynamic onFocusChanged(
- bool value
- VoidCallback? onPressed,
- dynamic onEditingComplete(
- NsgDataItem,
- String
- dynamic onFieldSubmitted(
- NsgDataItem,
- String
- int maxLines = 1,
- int minLines = 1,
- Widget? widget,
- Widget rowWidget(
- NsgDataItem,
- bool
- NsgInputType inputType = NsgInputType.autoselect,
- String selectionForm = '',
- TextInputType? keyboard = TextInputType.text,
- String? mask,
- NsgInputMaskType? maskType,
- List<
NsgDataItem> ? itemsToSelect, - bool? required,
- TextFormFieldType? textFormFieldType,
- Color? borderColor,
- bool? filled,
- Color? filledColor,
- bool? isDense,
- Widget? labelWidget,
- bool showLock = true,
- FloatingLabelBehavior? floatingLabelBehavior = FloatingLabelBehavior.never,
- TextStyle? textStyle,
- Widget? boolWidget,
- BoolBoxPosition? boolBoxPosition = BoolBoxPosition.end,
- EdgeInsets? contentPadding,
- Widget? prefix,
- Widget? suffixIcon,
- String? formatDateTime,
- NsgDataRequestParams getRequestFilter()?,
- TextCapitalization textCapitalization = TextCapitalization.none,
- 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,
});