PdfFormViewer constructor
const
PdfFormViewer({
- required String pdfPath,
- required List<
PdfFormField> fields, - required Map<
String, dynamic> formData, - required void onFieldChanged(
- String fieldName,
- dynamic value
- Set<
String> readOnlyFields = const {}, - PdfFormStyle style = PdfFormStyle.defaultStyle,
- Color? backgroundColor = const Color(0xFFE0E0E0),
- BoxShadow pageDropShadow = const BoxShadow(color: Colors.black38, blurRadius: 5, spreadRadius: 0, offset: Offset(2, 4)),
- 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,
});