PDF preview is too small in web app on edit invoice

This commit is contained in:
Hillel Coren 2023-11-28 16:55:26 +02:00
parent f5be5b3f33
commit f9e7ce39b5
6 changed files with 7 additions and 7 deletions

View File

@ -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',
), ),

View File

@ -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(),

View File

@ -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,
), ),
), ),
], ],

View File

@ -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,
), ),
); );
} }

View File

@ -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) +
'_' + '_' +

View File

@ -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,
), ),