SignDocumentPage constructor
const
SignDocumentPage({
- Key? key,
- required File file,
- ValueChanged<
Exception> ? onError, - ValueChanged<
File> ? onSignedDocument, - ValueChanged<
String> ? onCancelled, - ValueChanged<
Image> ? onSign, - ValueChanged<
int> ? onPageChanged, - ValueChanged<
List< ? onPlacementsChanged,SignaturePlacement> > - ValueChanged<
bool> ? onSignatureModeChanged, - Widget pageIndicatorBuilder()?,
- Widget loadingIndicatorBuilder()?,
- Widget errorWidgetBuilder()?,
- String uploadButtonMessage = 'Upload PDF',
- String nextButtonMessage = 'Next',
- String prevButtonMessage = 'Previous',
- String addSignatureMessage = 'Add Signature',
- Color primaryColor = const Color(0xFF2A6BCC),
- Color backgroundColor = const Color(0xFFF5F7F9),
- Color signatureColor = Colors.black,
- double minSignatureScale = 0.2,
- double maxSignatureScale = 3.0,
- bool enableMultipleSignatures = true,
- bool enableSignatureDeletion = true,
- bool enableSignatureResizing = true,
- bool enableSignatureRotation = false,
- 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,
});