CustomFormField constructor
const
CustomFormField({
- Key? key,
- required FocusNode? fcs,
- required TextEditingController ctrl,
- String? hintTxt,
- Icon? iconDecoration,
- void fieldSubmitted()?,
- String? validator()?,
- bool obscuretxt = false,
- bool enabled = true,
- TextInputAction? txtInputAction,
- TextInputType? keyboardType,
- Color decorationColor = const Color.fromRGBO(37, 37, 38, 1),
- Color fontColor = Colors.white,
- double fontSize = 16,
- double radius = 20,
- Widget? widgetPrefix,
- String? prefixText = '',
- List<
TextInputFormatter> ? inputFormatters, - bool autoFocus = false,
- int? maxLength,
- Color decorationBorderColor = const Color.fromRGBO(37, 37, 38, 1),
- void onChage()?,
- bool hasBorder = true,
- String? labelText,
- TextStyle? textStyle,
- Color lblColor = Colors.black,
- double letterSpacing = 1.3,
Implementation
const CustomFormField({
Key? key,
required this.fcs,
required this.ctrl,
this.hintTxt,
this.iconDecoration,
this.fieldSubmitted,
this.validator,
this.obscuretxt = false,
this.enabled = true,
this.txtInputAction,
this.keyboardType,
this.decorationColor = const Color.fromRGBO(37, 37, 38, 1),
this.fontColor = Colors.white,
this.fontSize = 16,
this.radius = 20,
this.widgetPrefix,
this.prefixText = '',
this.inputFormatters,
this.autoFocus = false,
this.maxLength,
this.decorationBorderColor = const Color.fromRGBO(37, 37, 38, 1),
this.onChage,
this.hasBorder = true,
this.labelText,
this.textStyle,
this.lblColor = Colors.black,
this.letterSpacing = 1.3,
}) : super(key: key);