OwlnextInput constructor

const OwlnextInput({
  1. Key? key,
  2. TextInputSubType type = TextInputSubType.text,
  3. TextEditingController? controller,
  4. String? label,
  5. String? errorText = '',
  6. int? minimumLines = 1,
  7. String? hintText = '',
  8. Widget? suffixIcon,
  9. Widget? prefixIcon,
  10. bool enabled = true,
  11. void onChanged(
    1. String
    )?,
  12. String? suffixText,
  13. int? charsLimit,
  14. bool isMandatory = false,
  15. Function? infoCallback,
  16. double? amountMaxLimit,
  17. int? decimalsMaxLimit,
  18. int? numberMaxLimit,
  19. int? numberMinLimit,
  20. FocusNode? focus,
  21. RegExp? customRegex,
  22. DateTime? minimumDate,
  23. DateTime? maximumDate,
  24. void onSubmitted(
    1. String
    )?,
  25. bool isInsideList = true,
  26. String? text,
  27. Axis? axis = Axis.vertical,
  28. bool hasCopyToClipboard = false,
  29. TextInputAction? textInputAction,
  30. Iterable<String>? autofillHints,
  31. InputDecoration? inputDecoration,
  32. TextStyle? innerInputTextStyle,
  33. CrossAxisAlignment? verticalCrossAlignment,
  34. MainAxisAlignment? verticalMainAlignment,
  35. TextAlign? textAlign,
  36. void onEditingComplete()?,
  37. void datePickerCallback(
    1. String
    )?,
  38. bool isExpanded = false,
  39. ScrollPhysics? physics,
})

Owlnext form input Based on Material design and uses TextFormField Used to automate all input behavior in one place

Can be customized through a variety of properties, like type TextInputSubType for specific behaviors Once you want to validate your form, you can use one of the different input formatters : parseInputToDouble returns a double tryParseInputToDouble returns a double or null formatISOToDateTime returns a DateTime from an ISO date formatInputToDateTime returns a DateTime from a full date formatShortInputToDateTime returns a DateTime from a short date

Implementation

const OwlnextInput({
  super.key,
  this.type = TextInputSubType.text,
  this.controller,
  this.label,
  this.errorText = '',
  this.minimumLines = 1,
  this.hintText = '',
  this.suffixIcon,
  this.prefixIcon,
  this.enabled = true,
  this.onChanged,
  this.suffixText,
  this.charsLimit,
  this.isMandatory = false,
  this.infoCallback,
  this.amountMaxLimit,
  this.decimalsMaxLimit,
  this.numberMaxLimit,
  this.numberMinLimit,
  this.focus,
  this.customRegex,
  this.minimumDate,
  this.maximumDate,
  this.onSubmitted,
  this.isInsideList = true,
  this.text,
  this.axis = Axis.vertical,
  this.hasCopyToClipboard = false,
  this.textInputAction,
  this.autofillHints,
  this.inputDecoration,
  this.innerInputTextStyle,
  this.verticalCrossAlignment,
  this.verticalMainAlignment,
  this.textAlign,
  this.onEditingComplete,
  this.datePickerCallback,
  this.isExpanded = false,
  this.physics,
})  : assert(amountMaxLimit == null || (amountMaxLimit != null && type == TextInputSubType.amount)),
      assert(decimalsMaxLimit == null || (decimalsMaxLimit != null && type == TextInputSubType.amount)),
      assert(numberMaxLimit == null || (numberMaxLimit != null && type == TextInputSubType.numbers)),
      assert(numberMinLimit == null || (numberMinLimit != null && type == TextInputSubType.numbers)),
      assert(minimumDate == null || (minimumDate != null && type == TextInputSubType.date)),
      assert(maximumDate == null || (maximumDate != null && type == TextInputSubType.date)),
      assert(datePickerCallback == null || (datePickerCallback != null && (type == TextInputSubType.date || type == TextInputSubType.hours)));