|
@@ -41,6 +41,7 @@ class FPDFRenderContainer extends StatefulWidget implements FWidget {
|
|
|
final Widget? loadingWidget;
|
|
|
final bool allowPrinting;
|
|
|
final bool allowSharing;
|
|
|
+ final bool isVital;
|
|
|
|
|
|
const FPDFRenderContainer({
|
|
|
Key? key,
|
|
@@ -61,6 +62,7 @@ class FPDFRenderContainer extends StatefulWidget implements FWidget {
|
|
|
this.loadingWidget,
|
|
|
this.allowPrinting = true,
|
|
|
this.allowSharing = true,
|
|
|
+ this.isVital = false,
|
|
|
}) : super(key: key);
|
|
|
|
|
|
@override
|
|
@@ -226,6 +228,7 @@ class FPDFRenderContainerState extends State<FPDFRenderContainer>
|
|
|
onWebSideShare: widget.webSideShare,
|
|
|
isReleaseMobile: isReleaseMobile,
|
|
|
loadingWidget: widget.loadingWidget,
|
|
|
+ isVital: widget.isVital,
|
|
|
allowPrinting: widget.allowPrinting,
|
|
|
dpi: widget.pdfTypeEnum == PDFTypeEnum.pdfJpeg
|
|
|
? null // pdfJpeg 是来自老平台的数据,不需要设置 dpi
|