PdfFormViewer constructor

const PdfFormViewer({
  1. required String pdfPath,
  2. required List<PdfFormField> fields,
  3. required Map<String, dynamic> formData,
  4. required void onFieldChanged(
    1. String fieldName,
    2. dynamic value
    ),
  5. Set<String> readOnlyFields = const {},
  6. PdfFormStyle style = PdfFormStyle.defaultStyle,
  7. Color? backgroundColor = const Color(0xFFE0E0E0),
  8. BoxShadow pageDropShadow = const BoxShadow(color: Colors.black38, blurRadius: 5, spreadRadius: 0, offset: Offset(2, 4)),
  9. Key? key,
})

Creates a PdfFormViewer.

Implementation

const PdfFormViewer({
  required this.pdfPath,
  required this.fields,
  required this.formData,
  required this.onFieldChanged,
  this.readOnlyFields = const {},
  this.style = PdfFormStyle.defaultStyle,
  this.backgroundColor = const Color(0xFFE0E0E0),
  this.pageDropShadow = const BoxShadow(
    color: Colors.black38,
    blurRadius: 5,
    spreadRadius: 0,
    offset: Offset(2, 4),
  ),
  super.key,
});