fix(pdf): make footer and all content stay compact and strictly within half-sheet area
This commit is contained in:
@@ -74,9 +74,12 @@ class InsuranceAuthPdfService {
|
||||
crossAxisAlignment: pw.CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
// Mitad superior de la hoja (máximo 5.5 pulgadas / 396 pt)
|
||||
pw.Container(
|
||||
height: 5.5 * PdfPageFormat.inch - 36,
|
||||
pw.ConstrainedBox(
|
||||
constraints: const pw.BoxConstraints(
|
||||
maxHeight: 5.5 * PdfPageFormat.inch - 36,
|
||||
),
|
||||
child: pw.Column(
|
||||
mainAxisSize: pw.MainAxisSize.min,
|
||||
crossAxisAlignment: pw.CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
// 1. Cabecera con Nombre del Doctor y Badge Sutil de Hidalyx Med
|
||||
@@ -207,10 +210,10 @@ class InsuranceAuthPdfService {
|
||||
pw.SizedBox(height: 8),
|
||||
|
||||
// 3. Contenido Formal idéntico a AlfaMedical
|
||||
pw.Expanded(
|
||||
child: pw.Column(
|
||||
crossAxisAlignment: pw.CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
pw.Column(
|
||||
crossAxisAlignment: pw.CrossAxisAlignment.stretch,
|
||||
mainAxisSize: pw.MainAxisSize.min,
|
||||
children: [
|
||||
// Señores ARS
|
||||
pw.RichText(
|
||||
text: pw.TextSpan(
|
||||
@@ -311,8 +314,14 @@ class InsuranceAuthPdfService {
|
||||
],
|
||||
],
|
||||
),
|
||||
pw.SizedBox(height: 10),
|
||||
|
||||
// Línea divisoria decorativa previa al pie
|
||||
pw.Container(
|
||||
height: 0.5,
|
||||
color: PdfColor.fromHex('CBD5E1'),
|
||||
),
|
||||
pw.SizedBox(height: 6),
|
||||
pw.SizedBox(height: 5),
|
||||
|
||||
// 4. Pie de página con Contacto del Consultorio
|
||||
if (generalContact.isNotEmpty) ...[
|
||||
|
||||
Reference in New Issue
Block a user