SignDocumentPage constructor

const SignDocumentPage({
  1. Key? key,
  2. required File file,
  3. ValueChanged<Exception>? onError,
  4. ValueChanged<File>? onSignedDocument,
  5. ValueChanged<String>? onCancelled,
  6. ValueChanged<Image>? onSign,
  7. ValueChanged<int>? onPageChanged,
  8. ValueChanged<List<SignaturePlacement>>? onPlacementsChanged,
  9. ValueChanged<bool>? onSignatureModeChanged,
  10. Widget pageIndicatorBuilder(
    1. BuildContext,
    2. int,
    3. int
    )?,
  11. Widget loadingIndicatorBuilder(
    1. BuildContext
    )?,
  12. Widget errorWidgetBuilder(
    1. BuildContext,
    2. Exception
    )?,
  13. String uploadButtonMessage = 'Upload PDF',
  14. String nextButtonMessage = 'Next',
  15. String prevButtonMessage = 'Previous',
  16. String addSignatureMessage = 'Add Signature',
  17. Color primaryColor = const Color(0xFF2A6BCC),
  18. Color backgroundColor = const Color(0xFFF5F7F9),
  19. Color signatureColor = Colors.black,
  20. double minSignatureScale = 0.2,
  21. double maxSignatureScale = 3.0,
  22. bool enableMultipleSignatures = true,
  23. bool enableSignatureDeletion = true,
  24. bool enableSignatureResizing = true,
  25. bool enableSignatureRotation = false,
  26. bool showPageNavigation = true,
  27. bool showSignatureCount = false,
})

Implementation

const SignDocumentPage({
  super.key,
  required this.file,
  this.onError,
  this.onSignedDocument,
  this.onCancelled,
  this.onSign,
  this.onPageChanged,
  this.onPlacementsChanged,
  this.onSignatureModeChanged,
  this.pageIndicatorBuilder,
  this.loadingIndicatorBuilder,
  this.errorWidgetBuilder,
  this.uploadButtonMessage = 'Upload PDF',
  this.nextButtonMessage = 'Next',
  this.prevButtonMessage = 'Previous',
  this.addSignatureMessage = 'Add Signature',
  this.primaryColor = const Color(0xFF2A6BCC),
  this.backgroundColor = const Color(0xFFF5F7F9),
  this.signatureColor = Colors.black,
  this.minSignatureScale = 0.2,
  this.maxSignatureScale = 3.0,
  this.enableMultipleSignatures = true,
  this.enableSignatureDeletion = true,
  this.enableSignatureResizing = true,
  this.enableSignatureRotation = false,
  this.showPageNavigation = true,
  this.showSignatureCount = false,
});