OmegaTextField constructor

OmegaTextField({
  1. Key? key,
  2. bool enabled = true,
  3. bool visible = true,
  4. String label = '',
  5. double labelSize = 14,
  6. Color labelColor = Colors.black,
  7. String? hint,
  8. int? maxLength,
  9. bool obscureText = false,
  10. bool showPassButton = false,
  11. TextInputType keyboardType = TextInputType.text,
  12. dynamic onChanged(
    1. String
    )?,
  13. dynamic onSaved(
    1. String?
    )?,
  14. dynamic onTap()?,
  15. FocusNode? focusNode,
  16. List<TextInputFormatter>? inputFormatters,
  17. String? validator(
    1. String?
    )?,
  18. bool showRequiredLabel = false,
  19. bool autofocus = false,
  20. TextCapitalization textCapitalization = TextCapitalization.none,
  21. String? initialValue,
  22. bool autoCorrect = false,
  23. Widget? prefix,
  24. TextStyle? labelStyle,
  25. TextEditingController? textController,
})

Implementation

OmegaTextField({
  Key? key,
  this.enabled = true,
  this.visible = true,
  this.label = '',
  this.labelSize = 14,
  this.labelColor = Colors.black,
  this.hint,
  this.maxLength,
  this.obscureText = false,
  this.showPassButton = false,
  this.keyboardType = TextInputType.text,
  this.onChanged,
  this.onSaved,
  this.onTap,
  this.focusNode,
  this.inputFormatters,
  this.validator,
  this.showRequiredLabel = false,
  this.autofocus = false,
  this.textCapitalization = TextCapitalization.none,
  this.initialValue,
  this.autoCorrect = false,
  this.prefix,
  this.labelStyle,
  this.textController,
}) : super(key: key);