FormLayoutPage constructor

const FormLayoutPage({
  1. Key? key,
  2. required String title,
  3. String? description,
  4. required Widget child,
  5. required VoidCallback onSubmit,
  6. required GlobalKey<ShadFormState> formKey,
  7. String submitButtonText = 'ถัดไป',
  8. VoidCallback? onFormChanged,
  9. Widget? header,
  10. Widget? footer,
  11. bool isLoading = false,
  12. bool stickyButton = true,
  13. double maxWidth = 600,
})

Implementation

const FormLayoutPage({
  super.key,
  required this.title,
  this.description,
  required this.child,
  required this.onSubmit,
  required this.formKey,
  this.submitButtonText = 'ถัดไป',
  this.onFormChanged,
  this.header,
  this.footer,
  this.isLoading = false,
  this.stickyButton = true,
  this.maxWidth = 600,
});