BasicField constructor
const
BasicField({
- TextEditingController? controller,
- Key? key,
- String? labelText,
- String? hintText,
- String? helperText,
- bool enable = true,
- bool autofocus = false,
- bool readOnly = false,
- bool obscureText = false,
- bool canRequestFocus = true,
- Iterable<
String> ? autofillHints, - TextInputType? textInputType,
- TextInputAction? textInputAction,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(6)),
- EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
- TapRegionCallback? onTapOutside,
- FormFieldValidator<
String> ? validator, - ValueSetter<
String> ? onChanged, - VoidCallback? onTap,
- FocusNode? focusNode,
- AutovalidateMode? autovalidateMode,
- List<
TextInputFormatter> ? inputFormatters, - Widget? prefixIcon,
- Widget? suffixIcon,
- int? maxLines,
- 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,
});