FormBuilder constructor
FormBuilder({
- required Map<
String, dynamic> initialData, - required int index,
- InputDecoration? textfieldDecoration,
- double? textFieldWidth,
- String? multipleimage,
- String? dropdownImage,
- String? checkboxImage,
- String? dateImage,
- String? textImage,
- String? remarkImage,
- String? submitButtonText,
- bool showIcon = false,
- required Function onSubmit,
- bool showIndex = true,
- BoxDecoration? submitButtonDecoration,
- double? submitButtonWidth = 0.5,
- TextStyle? submitTextDecoration,
- String? title,
- String? description,
- TextStyle? descriptionStyle,
- TextStyle? titleStyle,
- CrossAxisAlignment widgetCrossAxisAlignment = CrossAxisAlignment.start,
- TextStyle? titleTextDecoration,
- TextStyle? descriptionTextDecoration,
Implementation
FormBuilder({
required this.initialData,
required this.index,
this.textfieldDecoration, //adds inputdecoration to textfields
this.textFieldWidth, //to change the width of textField
this.multipleimage, //adds image for case 'multiple'
this.dropdownImage, //adds image for case 'dropdown'
this.checkboxImage, //adds image for case 'checkbox'
this.dateImage, //adds image for case 'date'
this.textImage, //adds image for case 'text'
this.remarkImage, //adds image for remarks
this.submitButtonText,
this.showIcon = false, //to enable or disable question icon
required this.onSubmit,
this.showIndex = true,
this.submitButtonDecoration,
this.submitButtonWidth = 0.5,
this.submitTextDecoration,
this.title,
this.description,
this.descriptionStyle,
this.titleStyle,
this.widgetCrossAxisAlignment = CrossAxisAlignment.start,
this.titleTextDecoration,
this.descriptionTextDecoration,
});