PDF preview is too small in web app on edit invoice
This commit is contained in:
parent
f5be5b3f33
commit
f9e7ce39b5
|
|
@ -504,7 +504,7 @@ class _ClientPdfViewState extends State<ClientPdfView> {
|
||||||
canChangeOrientation: false,
|
canChangeOrientation: false,
|
||||||
canChangePageFormat: false,
|
canChangePageFormat: false,
|
||||||
canDebug: false,
|
canDebug: false,
|
||||||
maxPageWidth: 600,
|
maxPageWidth: 800,
|
||||||
pdfFileName:
|
pdfFileName:
|
||||||
localization.statement + '_' + client.number + '.pdf',
|
localization.statement + '_' + client.number + '.pdf',
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -683,7 +683,7 @@ class _PdfDesignPreviewState extends State<PdfDesignPreview> {
|
||||||
allowPrinting: false,
|
allowPrinting: false,
|
||||||
allowSharing: false,
|
allowSharing: false,
|
||||||
canDebug: false,
|
canDebug: false,
|
||||||
maxPageWidth: 600,
|
maxPageWidth: 800,
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
SizedBox(),
|
SizedBox(),
|
||||||
|
|
|
||||||
|
|
@ -1297,7 +1297,7 @@ class __PdfPreviewState extends State<_PdfPreview> {
|
||||||
final state = store.state;
|
final state = store.state;
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
height: state.prefState.showPdfPreviewSideBySide ? 800 : 1200,
|
height: state.prefState.showPdfPreviewSideBySide ? 800 : 1150,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
alignment: Alignment.topCenter,
|
alignment: Alignment.topCenter,
|
||||||
children: [
|
children: [
|
||||||
|
|
@ -1352,7 +1352,7 @@ class __PdfPreviewState extends State<_PdfPreview> {
|
||||||
allowSharing: false,
|
allowSharing: false,
|
||||||
canDebug: false,
|
canDebug: false,
|
||||||
pages: [_currentPage - 1],
|
pages: [_currentPage - 1],
|
||||||
maxPageWidth: 600,
|
maxPageWidth: 800,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ class InvoiceEditPDFState extends State<InvoiceEditPDF> {
|
||||||
allowPrinting: false,
|
allowPrinting: false,
|
||||||
allowSharing: false,
|
allowSharing: false,
|
||||||
canDebug: false,
|
canDebug: false,
|
||||||
maxPageWidth: 600,
|
maxPageWidth: 800,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -283,7 +283,7 @@ class _InvoicePdfViewState extends State<InvoicePdfView> {
|
||||||
canChangeOrientation: false,
|
canChangeOrientation: false,
|
||||||
canChangePageFormat: false,
|
canChangePageFormat: false,
|
||||||
canDebug: false,
|
canDebug: false,
|
||||||
maxPageWidth: 600,
|
maxPageWidth: 800,
|
||||||
pdfFileName:
|
pdfFileName:
|
||||||
localization.lookup(invoice.entityType!.snakeCase) +
|
localization.lookup(invoice.entityType!.snakeCase) +
|
||||||
'_' +
|
'_' +
|
||||||
|
|
|
||||||
|
|
@ -1380,7 +1380,7 @@ class _PdfPreviewState extends State<_PdfPreview> {
|
||||||
canChangeOrientation: false,
|
canChangeOrientation: false,
|
||||||
canChangePageFormat: false,
|
canChangePageFormat: false,
|
||||||
canDebug: false,
|
canDebug: false,
|
||||||
maxPageWidth: 600,
|
maxPageWidth: 800,
|
||||||
allowPrinting: false,
|
allowPrinting: false,
|
||||||
allowSharing: false,
|
allowSharing: false,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue