GfForm constructor

const GfForm({
  1. Key? key,
  2. required dynamic onFormSubmitted(
    1. List
    ),
  3. double? height,
  4. double? width,
  5. double? radius,
  6. String? formHeading,
  7. GlobalKey<FormState>? formkey,
  8. Function? validatesuccess,
  9. Function? validatefailed,
  10. CrossAxisAlignment formAlignment = CrossAxisAlignment.center,
  11. required List<Widget> formfields,
  12. Widget? customSubmitButton,
  13. required bool defaultSubmitButtonEnabled,
  14. String defaultSubmitButtontext = 'SUBMIT',
  15. Color formBorderColor = Colors.black,
  16. GFTypographyType headingtype = GFTypographyType.typo5,
})

Implementation

const GfForm(
    {Key? key,
    required this.onFormSubmitted,
    this.height,
    this.width,
    this.radius,
    this.formHeading,
    this.formkey,
    this.validatesuccess,
    this.validatefailed,
    this.formAlignment = CrossAxisAlignment.center,
    required this.formfields,
    this.customSubmitButton,
    required this.defaultSubmitButtonEnabled,
    this.defaultSubmitButtontext = 'SUBMIT',
    this.formBorderColor = Colors.black,
    this.headingtype = GFTypographyType.typo5})
    : super(key: key);