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,
canChangePageFormat: false,
canDebug: false,
maxPageWidth: 600,
maxPageWidth: 800,
pdfFileName:
localization.statement + '_' + client.number + '.pdf',
),

View File

@ -683,7 +683,7 @@ class _PdfDesignPreviewState extends State<PdfDesignPreview> {
allowPrinting: false,
allowSharing: false,
canDebug: false,
maxPageWidth: 600,
maxPageWidth: 800,
)
else
SizedBox(),

View File

@ -1297,7 +1297,7 @@ class __PdfPreviewState extends State<_PdfPreview> {
final state = store.state;
return Container(
height: state.prefState.showPdfPreviewSideBySide ? 800 : 1200,
height: state.prefState.showPdfPreviewSideBySide ? 800 : 1150,
child: Stack(
alignment: Alignment.topCenter,
children: [
@ -1352,7 +1352,7 @@ class __PdfPreviewState extends State<_PdfPreview> {
allowSharing: false,
canDebug: false,
pages: [_currentPage - 1],
maxPageWidth: 600,
maxPageWidth: 800,
),
),
],

View File

@ -115,7 +115,7 @@ class InvoiceEditPDFState extends State<InvoiceEditPDF> {
allowPrinting: false,
allowSharing: false,
canDebug: false,
maxPageWidth: 600,
maxPageWidth: 800,
),
);
}

View File

@ -283,7 +283,7 @@ class _InvoicePdfViewState extends State<InvoicePdfView> {
canChangeOrientation: false,
canChangePageFormat: false,
canDebug: false,
maxPageWidth: 600,
maxPageWidth: 800,
pdfFileName:
localization.lookup(invoice.entityType!.snakeCase) +
'_' +

View File

@ -1380,7 +1380,7 @@ class _PdfPreviewState extends State<_PdfPreview> {
canChangeOrientation: false,
canChangePageFormat: false,
canDebug: false,
maxPageWidth: 600,
maxPageWidth: 800,
allowPrinting: false,
allowSharing: false,
),