feat(prescription): enhance posology panel with horizontal scroll, arrows and calibrate print margins to 28pt
This commit is contained in:
@@ -29,10 +29,10 @@ class DepartmentReferralPdfService {
|
||||
const pageFormat = PdfPageFormat(
|
||||
8.5 * PdfPageFormat.inch,
|
||||
11.0 * PdfPageFormat.inch,
|
||||
marginLeft: 54,
|
||||
marginRight: 54,
|
||||
marginTop: 20,
|
||||
marginBottom: 20,
|
||||
marginLeft: 28,
|
||||
marginRight: 28,
|
||||
marginTop: 16,
|
||||
marginBottom: 16,
|
||||
);
|
||||
|
||||
// Tipografías estándar con fallback a fuentes base PDF si no hay conexión a internet
|
||||
@@ -71,7 +71,7 @@ class DepartmentReferralPdfService {
|
||||
// Mitad superior de la hoja (máximo 5.5 pulgadas / 396 pt)
|
||||
pw.ConstrainedBox(
|
||||
constraints: const pw.BoxConstraints(
|
||||
maxHeight: 5.5 * PdfPageFormat.inch - 36,
|
||||
maxHeight: 5.5 * PdfPageFormat.inch - 32,
|
||||
),
|
||||
child: pw.Column(
|
||||
mainAxisSize: pw.MainAxisSize.min,
|
||||
|
||||
@@ -29,10 +29,10 @@ class DoctorReferralPdfService {
|
||||
const pageFormat = PdfPageFormat(
|
||||
8.5 * PdfPageFormat.inch,
|
||||
11.0 * PdfPageFormat.inch,
|
||||
marginLeft: 54,
|
||||
marginRight: 54,
|
||||
marginTop: 20,
|
||||
marginBottom: 20,
|
||||
marginLeft: 28,
|
||||
marginRight: 28,
|
||||
marginTop: 16,
|
||||
marginBottom: 16,
|
||||
);
|
||||
|
||||
// Tipografías estándar con fallback a fuentes base PDF si no hay conexión a internet
|
||||
@@ -71,7 +71,7 @@ class DoctorReferralPdfService {
|
||||
// Mitad superior de la hoja (máximo 5.5 pulgadas / 396 pt)
|
||||
pw.ConstrainedBox(
|
||||
constraints: const pw.BoxConstraints(
|
||||
maxHeight: 5.5 * PdfPageFormat.inch - 36,
|
||||
maxHeight: 5.5 * PdfPageFormat.inch - 32,
|
||||
),
|
||||
child: pw.Column(
|
||||
mainAxisSize: pw.MainAxisSize.min,
|
||||
|
||||
Reference in New Issue
Block a user