build method
- dynamic context
override
Implementation
@override
pw.Widget build(dynamic context) {
return pw.Container(
padding: const pw.EdgeInsets.symmetric(vertical: PdfPageFormat.mm),
child: pw.Row(
mainAxisAlignment: pw.MainAxisAlignment.start,
crossAxisAlignment: pw.CrossAxisAlignment.start,
children: [
pw.Container(
width: 3 * PdfPageFormat.cm,
child: pw.Text(
title,
style: pw.TextStyle(
color: PdfColors.teal,
fontSize: 10,
fontWeight: pw.FontWeight.normal,
letterSpacing: 1.0),
textAlign: pw.TextAlign.left,
),
),
pw.Container(
width: 5 * PdfPageFormat.cm,
child: pw.Text(
content,
style: pw.TextStyle(
color: PdfColors.black,
fontSize: 10,
fontWeight: pw.FontWeight.normal,
),
textAlign: pw.TextAlign.left,
),
)
],
),
);
}