feat: Ajout de la gestion des maintenances et intégration de la synthèse vocale
This commit is contained in:
@@ -286,7 +286,7 @@ class PDFService {
|
||||
final pageItems = items.skip(pageStart).take(config.itemsPerPage).toList();
|
||||
final pageQRs = qrImages.skip(pageStart).take(config.itemsPerPage).toList();
|
||||
|
||||
pdf.addPage(
|
||||
pdf.addPage(
|
||||
pw.Page(
|
||||
pageFormat: PdfPageFormat.a4,
|
||||
margin: pw.EdgeInsets.zero,
|
||||
@@ -299,10 +299,20 @@ class PDFService {
|
||||
runSpacing: 0, // 0 espace entre les lignes
|
||||
children: List.generate(pageItems.length, (i) {
|
||||
final item = pageItems[i];
|
||||
// Déterminer si c'est la première colonne (indices pairs)
|
||||
final bool isFirstColumn = (i % 2) == 0;
|
||||
// Décalage de 2mm pour la première colonne
|
||||
final double leftPadding = isFirstColumn ? 8.0 : 6.0; // 6 + 2mm
|
||||
|
||||
return pw.Container(
|
||||
width: labelWidth,
|
||||
height: labelHeight,
|
||||
padding: const pw.EdgeInsets.all(6),
|
||||
padding: pw.EdgeInsets.only(
|
||||
left: leftPadding,
|
||||
right: 6,
|
||||
top: 6,
|
||||
bottom: 6,
|
||||
),
|
||||
// Suppression de la décoration (bordure)
|
||||
child: pw.Row(
|
||||
crossAxisAlignment: pw.CrossAxisAlignment.center,
|
||||
|
||||
Reference in New Issue
Block a user