CustomFormField constructor
const
CustomFormField({
- Key? key,
- TextEditingController? controller,
- String? validator()?,
- String? onSave()?,
- dynamic onChanged()?,
- Widget? leading,
- int? maxLength,
- FocusNode? focusNode,
- bool? enabled,
- Widget? trailing,
- bool? obsecure,
- String? hint,
- Color? labelColor,
- Color? hintColor,
- bool? optional,
- String? labelText,
- String? classicLabelText,
- TextInputType? keyboardType,
- double fontSize = 16,
- double radius = SizeConfig.fieldBorderRadius,
- Color? borderColor,
- Color? fillColor,
- double? height,
- TextInputAction? textInputAction,
- List<
TextInputFormatter> ? inputFormatters, - VoidCallback? onEditingComplete,
- TextCapitalization textCapitalization = TextCapitalization.none,
- dynamic onFieldSubmitted()?,
- int? maxLines = 1,
- 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,
),
});