BasicField constructor

const BasicField({
  1. TextEditingController? controller,
  2. Key? key,
  3. String? labelText,
  4. String? hintText,
  5. String? helperText,
  6. bool enable = true,
  7. bool autofocus = false,
  8. bool readOnly = false,
  9. bool obscureText = false,
  10. bool canRequestFocus = true,
  11. Iterable<String>? autofillHints,
  12. TextInputType? textInputType,
  13. TextInputAction? textInputAction,
  14. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(6)),
  15. EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
  16. TapRegionCallback? onTapOutside,
  17. FormFieldValidator<String>? validator,
  18. ValueSetter<String>? onChanged,
  19. VoidCallback? onTap,
  20. FocusNode? focusNode,
  21. AutovalidateMode? autovalidateMode,
  22. List<TextInputFormatter>? inputFormatters,
  23. Widget? prefixIcon,
  24. Widget? suffixIcon,
  25. int? maxLines,
  26. int? minLines,
})

Implementation

const BasicField({
  this.controller,
  super.key,
  this.labelText,
  this.hintText,
  this.helperText,
  this.enable = true,
  this.autofocus = false,
  this.readOnly = false,
  this.obscureText = false,
  this.canRequestFocus = true,
  this.autofillHints,
  this.textInputType,
  this.textInputAction,
  this.borderRadius = const BorderRadius.all(Radius.circular(6)),
  this.contentPadding =
      const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
  this.onTapOutside,
  this.validator,
  this.onChanged,
  this.onTap,
  this.focusNode,
  this.autovalidateMode,
  this.inputFormatters,
  this.prefixIcon,
  this.suffixIcon,
  this.maxLines,
  this.minLines,
});