feat(prescription): enhance posology panel with horizontal scroll, arrows and calibrate print margins to 28pt

This commit is contained in:
=
2026-09-22 10:16:43 -04:00
parent 1152168ea6
commit 20b3255893
6 changed files with 364 additions and 179 deletions
@@ -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,