GfForm constructor
const
GfForm({
- Key? key,
- required dynamic onFormSubmitted(),
- double? height,
- double? width,
- double? radius,
- String? formHeading,
- GlobalKey<
FormState> ? formkey, - Function? validatesuccess,
- Function? validatefailed,
- CrossAxisAlignment formAlignment = CrossAxisAlignment.center,
- required List<
Widget> formfields, - Widget? customSubmitButton,
- required bool defaultSubmitButtonEnabled,
- String defaultSubmitButtontext = 'SUBMIT',
- Color formBorderColor = Colors.black,
- 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);