CustomFormField constructor

const CustomFormField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? validator(
    1. String?
    )?,
  4. String? onSave(
    1. String?
    )?,
  5. dynamic onChanged(
    1. String?
    )?,
  6. Widget? leading,
  7. int? maxLength,
  8. FocusNode? focusNode,
  9. bool? enabled,
  10. Widget? trailing,
  11. bool? obsecure,
  12. String? hint,
  13. Color? labelColor,
  14. Color? hintColor,
  15. bool? optional,
  16. String? labelText,
  17. String? classicLabelText,
  18. TextInputType? keyboardType,
  19. double fontSize = 16,
  20. double radius = SizeConfig.fieldBorderRadius,
  21. Color? borderColor,
  22. Color? fillColor,
  23. double? height,
  24. TextInputAction? textInputAction,
  25. List<TextInputFormatter>? inputFormatters,
  26. VoidCallback? onEditingComplete,
  27. TextCapitalization textCapitalization = TextCapitalization.none,
  28. dynamic onFieldSubmitted(
    1. String
    )?,
  29. int? maxLines = 1,
  30. EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 12, vertical: 16),
})

Implementation

const CustomFormField({
  super.key,
  this.controller,
  this.validator,
  this.onSave,
  this.onChanged,
  this.leading,
  this.maxLength,
  this.focusNode,
  this.enabled,
  this.trailing,
  this.obsecure,
  this.hint,
  this.labelColor,
  this.hintColor,
  this.optional,
  this.labelText,
  this.classicLabelText,
  this.keyboardType,
  this.fontSize = 16,
  this.radius = SizeConfig.fieldBorderRadius,
  this.borderColor,
  this.fillColor,
  this.height,
  this.textInputAction,
  this.inputFormatters,
  this.onEditingComplete,
  this.textCapitalization = TextCapitalization.none,
  this.onFieldSubmitted,
  this.maxLines = 1,
  this.contentPadding = const EdgeInsets.symmetric(
    horizontal: 12,
    vertical: 16,
  ),
});