ApptiveGridFormData constructor

const ApptiveGridFormData({
  1. Key? key,
  2. FormData? formData,
  3. dynamic error,
  4. TextStyle? titleStyle,
  5. TextStyle? descriptionStyle,
  6. EdgeInsetsGeometry? contentPadding,
  7. EdgeInsetsGeometry? titlePadding,
  8. EdgeInsetsGeometry? descriptionPadding,
  9. bool hideTitle = false,
  10. bool hideDescription = false,
  11. EdgeInsetsGeometry? textBlockPadding,
  12. TextStyle? textBlockStyle,
  13. Future<bool> onActionSuccess(
    1. ApptiveLink,
    2. FormData
    )?,
  14. Future<bool> onSavedToPending(
    1. ApptiveLink,
    2. FormData
    )?,
  15. void onCreated(
    1. Uri
    )?,
  16. Future<bool> onError(
    1. dynamic
    )?,
  17. void triggerReload()?,
  18. ScrollController? scrollController,
  19. Alignment buttonAlignment = Alignment.center,
  20. String? buttonLabel,
  21. bool hideButton = false,
  22. Widget? componentBuilder(
    1. BuildContext,
    2. FormComponent<DataEntity>
    )?,
})

Creates a Widget to display formData

if error is not null it will display a error

Implementation

const ApptiveGridFormData({
  super.key,
  this.formData,
  this.error,
  this.titleStyle,
  this.descriptionStyle,
  this.contentPadding,
  this.titlePadding,
  this.descriptionPadding,
  this.hideTitle = false,
  this.hideDescription = false,
  this.textBlockPadding,
  this.textBlockStyle,
  this.onActionSuccess,
  this.onSavedToPending,
  this.onCreated,
  this.onError,
  this.triggerReload,
  this.scrollController,
  this.buttonAlignment = Alignment.center,
  this.buttonLabel,
  this.hideButton = false,
  this.componentBuilder,
});